mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 14:18:36 +02:00
don't setup an default output fd for the terminal sesssion and drop the toupper hack
This commit is contained in:
parent
85b75dfdbf
commit
150194ce40
1 changed files with 1 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue