forked from KolibriOS/kolibrios
console library version 7; console examples updated
git-svn-id: svn://kolibrios.org@1145 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -68,6 +68,8 @@ mainloop:
|
||||
jmp mainloop
|
||||
extended:
|
||||
call [con_getch]
|
||||
test eax, eax
|
||||
jz done
|
||||
push eax
|
||||
push eax
|
||||
push string_extended
|
||||
|
@@ -41,7 +41,7 @@ start:
|
||||
; for (;;)
|
||||
; {
|
||||
; con_write_asciiz("Enter string (empty for exit): ");
|
||||
; con_gets(s,256);
|
||||
; if (!con_gets(s,256)) break;
|
||||
; if (s[0] == '\n') break;
|
||||
; con_write_asciiz("You entered: ");
|
||||
; con_write_asciiz(s);
|
||||
@@ -52,6 +52,8 @@ mainloop:
|
||||
push 256
|
||||
push s
|
||||
call [con_gets]
|
||||
test eax, eax
|
||||
jz done
|
||||
cmp [s], 10
|
||||
jz done
|
||||
push str2
|
||||
|
@@ -41,7 +41,7 @@ start:
|
||||
; for (;;)
|
||||
; {
|
||||
; con_write_asciiz("Enter string (empty for exit): ");
|
||||
; con_gets2(mycallback,s,256);
|
||||
; if (!con_gets2(mycallback,s,256)) break;
|
||||
; if (s[0] == '\n') break;
|
||||
; con_write_asciiz("You entered: ");
|
||||
; con_write_asciiz(s);
|
||||
@@ -53,6 +53,8 @@ mainloop:
|
||||
push s
|
||||
push mycallback
|
||||
call [con_gets2]
|
||||
test eax, eax
|
||||
jz done
|
||||
cmp [s], 10
|
||||
jz done
|
||||
push str2
|
||||
|
Reference in New Issue
Block a user