mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
580d9cedc7
* termio: new termio module move the tcgetattr and tcsetattr functions in a new termio module. The code needed refactoring as different OS have different fields size, position and number for the C.termios structure, which could not be correctly expressed consitently otherwise. It has the positive side effect to reduce the number of unsafe calls. New testing code was also added for the readline module as it is relying of the feature. * apply 2023 copyright to the new files too
10 lines
126 B
Plaintext
Executable File
10 lines
126 B
Plaintext
Executable File
#!/usr/bin/expect
|
|
spawn ./readline_ci
|
|
send "a"
|
|
expect "got 97"
|
|
send "1"
|
|
expect "got 49"
|
|
send "q"
|
|
expect "Goodbye."
|
|
expect eof
|