Enable raw mode access for VM interactions
This commit is contained in:
parent
6a7436a09c
commit
cd1816c9b1
4
makefile
4
makefile
|
@ -1,10 +1,10 @@
|
||||||
all: libvm vm
|
all: libvm vm
|
||||||
|
|
||||||
libvm: wrapper.c vm_instructions.c vm_decode.c vm.h tty.c
|
libvm: wrapper.c vm_instructions.c vm_decode.c vm.h tty.c
|
||||||
gcc -ggdb -shared -Wl,-soname,libvm.so -o libvm.so -fPIC wrapper.c vm_instructions.c vm_decode.c vm.h tty.c
|
gcc -ggdb -Dtty_lib=true -shared -Wl,-soname,libvm.so -o libvm.so -fPIC wrapper.c vm_instructions.c vm_decode.c vm.h tty.c
|
||||||
|
|
||||||
vm: vm.h vm.c vm_instructions.c vm_decode.c tty.c
|
vm: vm.h vm.c vm_instructions.c vm_decode.c tty.c
|
||||||
gcc -ggdb vm.h vm.c vm_instructions.c vm_decode.c tty.c -o bin/vm
|
gcc -ggdb -Dtty_lib=true vm.h vm.c vm_instructions.c vm_decode.c tty.c -o bin/vm
|
||||||
|
|
||||||
production: libvm-production vm-production
|
production: libvm-production vm-production
|
||||||
|
|
||||||
|
|
2
tty.c
2
tty.c
|
@ -8,8 +8,6 @@
|
||||||
* wish to use. Please note that they contain bugs *
|
* wish to use. Please note that they contain bugs *
|
||||||
****************************************************/
|
****************************************************/
|
||||||
|
|
||||||
#define tty_lib true
|
|
||||||
|
|
||||||
/* In order to restore at exit.*/
|
/* In order to restore at exit.*/
|
||||||
static struct termios orig_termios;
|
static struct termios orig_termios;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue