[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [PATCH 3/4] mini-os: Enable console to be configured as raw tty using termios



If the console is in raw mode skip the nl to crnl conversion.

Signed-off-by: Simon Waterman <watermansrdev@xxxxxxxxx>
---
 console/console.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/console/console.c b/console/console.c
index 5538bd4..2e04552 100644
--- a/console/console.c
+++ b/console/console.c
@@ -93,6 +93,11 @@ void console_print(struct consfront_dev *dev, char *data, 
int length)
     else
         ring_send_fn = xencons_ring_send;
 
+    if (dev && dev->is_raw) {
+        ring_send_fn(dev, data, length);
+        return;
+    }
+
     copied_ptr = copied_str;
     memcpy(copied_ptr, data, length);
     for(curr_char = copied_ptr; curr_char < copied_ptr+length-1; curr_char++)
-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.