Bugfix for newline exit

When stdin is close instead of pressing enter
This commit is contained in:
Yann Weber 2018-09-10 02:40:38 +02:00
commit 4432178af9

View file

@ -230,19 +230,20 @@ main_loop:
jmp main_loop ; main_loop
flush_stdin:
jz newline_exit
xor rax, rax
;xor rdi, rdi ; done in main_loop
;mov rsi, r14
;mov rdx, 1
syscall
test al, al
jz newline_exit
jns flush_stdin
xor rbx, rbx ; EXIT OK
jmp exit
newline_exit:
mov rdi, 2 ; stderr
call proc_nl
xor rbx, rbx ; exit OK
jmp exit