git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: more compact log message
[lunaix-os.git]
/
lunaix-os
/
kernel
/
tty
/
lxconsole.c
diff --git
a/lunaix-os/kernel/tty/lxconsole.c
b/lunaix-os/kernel/tty/lxconsole.c
index ad3fc420af8520413ee46e1036b5e1daa62c7e77..31afa6490766a3a5873096c5e99aca63016751d0 100644
(file)
--- a/
lunaix-os/kernel/tty/lxconsole.c
+++ b/
lunaix-os/kernel/tty/lxconsole.c
@@
-27,9
+27,9
@@
console_flush();
static waitq_t lx_reader;
static volatile char ttychr;
static waitq_t lx_reader;
static volatile char ttychr;
-static pid_t fg_pgid = 0;
+static
volatile
pid_t fg_pgid = 0;
-inline void
+
static
inline void
print_control_code(const char cntrl)
{
console_write_char('^');
print_control_code(const char cntrl)
{
console_write_char('^');
@@
-294,6
+294,10
@@
console_write(struct console* console, uint8_t* data, size_t size)
console->wnd_start = rd_ptr;
fbuf->flags |= FIFO_DIRTY;
mutex_unlock(&fbuf->lock);
console->wnd_start = rd_ptr;
fbuf->flags |= FIFO_DIRTY;
mutex_unlock(&fbuf->lock);
+
+ if (!lx_console.flush_timer) {
+ console_flush();
+ }
}
void
}
void