Subversion Repositories Kolibri OS

Rev

Rev 9979 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9979 Rev 9981
Line 21... Line 21...
21
        jz      .ret                                    ; ignore empty commands
21
        jz      .ret                                    ; ignore empty commands
Line 22... Line 22...
22
 
22
 
23
        mov     esi, input_text
23
        mov     esi, input_text
24
        mov     edi, user_command
24
        mov     edi, user_command
25
        call    recode                                  ; Convert to UTF-8
25
        call    recode                                  ; Convert to UTF-8
26
        mov     word[edi], 0x0a0d                       ; terminate the line
26
        mov     byte[edi], 0x0                          ; Terminate string with \0
27
        sub     edi, user_command
27
        sub     edi, user_command
Line 28... Line 28...
28
        mov     [user_command.size], edi
28
        mov     [user_command.size], edi
29
 
29
 
Line 656... Line 656...
656
; The user typed some undefined command, just send it to the server
656
; The user typed some undefined command, just send it to the server
657
cmd_usr_send:
657
cmd_usr_send:
Line 658... Line 658...
658
 
658
 
659
        mov     esi, [user_command.size]
659
        mov     esi, [user_command.size]
660
        mov     eax, [user_command.size]
660
        mov     eax, [user_command.size]
661
        add     eax, user_command+1
661
        add     eax, user_command
662
        mov     word[eax], 0x0a0d
662
        mov     word[eax], 0x0a0d
663
        inc     esi
663
        inc     esi                     ; Skip / add \r\n
Line 664... Line 664...
664
        mcall   send, [socketnum], user_command+1, , 0
664
        mcall   send, [socketnum], user_command+1, , 0