]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
don't setup an default output fd for the terminal sesssion and drop the toupper hack
authorRay Strode <rstrode@redhat.com>
Tue, 5 Jun 2007 20:49:44 +0000 (16:49 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 5 Jun 2007 20:49:44 +0000 (16:49 -0400)
src/ply-terminal-session.c

index cc580adda3d5400fe9ba59fa12a8f87b7c7e112a..22da67ae486daacfb7034caec6a0df95b189e6f3 100644 (file)
@@ -306,13 +306,7 @@ ply_terminal_session_on_new_data (ply_terminal_session_t *session,
   bytes_read = read (session_fd, buffer, sizeof (buffer));
 
   if (bytes_read > 0)
-    {
-      int i;
-      for (i = 0; i < bytes_read; i++)
-        if (isprint (buffer[i]))
-          buffer[i] = toupper(buffer[i]);
-      ply_terminal_session_log_bytes (session, buffer, bytes_read);
-    }
+    ply_terminal_session_log_bytes (session, buffer, bytes_read);
 
   ply_logger_flush (session->logger);
 }
@@ -353,9 +347,6 @@ ply_terminal_session_start_logging (ply_terminal_session_t *session)
                            ply_terminal_session_on_new_data, 
                            (ply_event_handler_t)
                            ply_terminal_session_on_hangup, session);
-
-  ply_logger_set_output_fd (session->logger, 
-                            open ("/dev/tty1", O_RDWR));
 }
 
 static void