Displaying 5 results from an estimated 5 matches for "get_char_2".
Did you mean:
get_char
2002 Jan 12
0
no echo patch
...ux.asm Wed Jan 2 07:53:39 2002
+++ syslinux-1.66/pxelinux.asm Sat Jan 12 18:40:34 2002
@@ -1327,7 +1327,7 @@
.not_ctrl_f: cmp di,max_cmd_len+command_line ; Check there's space
jnb get_char
stosb ; Save it
- call writechr ; Echo to screen
+;Martin call writechr ; Echo to screen
get_char_2: jmp short get_char
not_ascii: mov byte [FuncFlag],0
cmp al,0Dh ; Enter
@@ -1339,8 +1339,8 @@
backspace: cmp di,command_line ; Make sure there is anything
je get_char ; to erase
dec di ; Unstore one character
- mov si,wipe_char ; and erase it from the screen
- call cwritestr
+...
2008 Aug 31
1
[RFC][PATCH] ui: label completion on tab key
...2008-08-31 22:51:44.000000000 +0200
@@ -108,6 +108,8 @@
not_ascii:
cmp al,0Dh ; Enter
je command_done
+ cmp al,09h ; Tab
+ je display_labels
cmp al,'F' & 1Fh ; <Ctrl-F>
je set_func_flag
%if IS_PXELINUX
@@ -142,6 +144,48 @@
mov byte [FuncFlag],1
jmp short get_char_2
+display_labels:
+ cmp word [LabelCompl],1 ; Label completion enabled?
+ jnz get_char_2
+ mov cx,di
+ sub cx,command_line
+ call crlf
+ mov esi,[HighMemSize] ; Start from top of memory
+.scan:
+ cmp esi,[VKernelEnd]
+ jbe .not_vk
+
+ push cx ; save command line size
+
+ mov di,VKer...
2011 Feb 18
1
[PATCH] core: Allow pasting from a VMware host by typing Ctrl-P
...je paste
cmp al,08h ; Backspace
jne get_char
backspace: cmp di,command_line ; Make sure there is anything
@@ -143,6 +145,10 @@ force_text_mode:
call vgaclearmode
jmp enter_command
+paste:
+ call vmware_paste
+ jmp get_char
+
set_func_flag:
mov byte [FuncFlag],1
jmp short get_char_2
@@ -568,6 +574,72 @@ getchar_timeout:
call vgahidecursor
ret
+; Copy data from VMware's clipboard to the command-line buffer
+VMwareMagic equ 564D5868h ; VMWare magic number
+VMwarePort equ 5658h ; VMWare magic port
+vmware_paste:
+ mov eax,VMwareMagic
+ mov ebx,0
+ mov cx,000ah...
2010 Jul 15
1
Accessing command_line from core C code
...alignb 4
default_cmd resb max_cmd_len+1 ; "default" command line
diff --git a/core/ui.inc b/core/ui.inc
index 2d44447..3e28dac 100644
--- a/core/ui.inc
+++ b/core/ui.inc
@@ -150,44 +150,8 @@ set_func_flag:
display_labels:
cmp word [NoComplete],0 ; Label completion enabled?
jne get_char_2
- push di ; Save pointer
- mov cx,di
- sub cx,command_line
- call crlf
- mov esi,[HighMemSize] ; Start from top of memory
-.scan:
- cmp esi,[VKernelEnd]
- jbe .not_vk
-
- push cx ; save command line size
-
- mov edi,VKernelBuf
- pm_call rllunpack
- ; ESI updated on return
-
- sub...
2002 Feb 26
0
syslinux timeout
...;call cwritestr
+ call writeprompt
+ ; DTM END --------------------------------------------------
+
pop di ; Command line write pointer
push di
mov byte [di],0 ; Null-terminate command line
mov si,command_line
call cwritestr ; Write command line so far
pop di
jmp short get_char_2
auto_boot:
mov si,default_cmd
mov di,command_line
@@ -3377,21 +3435,24 @@
pushad
.top: lodsb
and al,al
jz .end
call writechr
jmp short .top
.end: popad
popfd
ret
-%ifdef debug
+; BEGIN DTM --------------------...