currently I use an externol tool to do this in gforth over gnulinux station.
: caps ( -- ) s" xdotool key Caps_Lock" system ;
\ triggers capslock just like pressing the key
[..]
ONLY FORTH ALSO ASSEMBLER
code toto
$3A # al mov
$02 # ah mov
$80 # int
ret
end-code
that migth be also a solution but I failed as this creates a memory error on execution
I failed to find more documentation or examples to fix it
hello
currently I use an externol tool to do this in gforth over gnulinux station.
: caps ( -- ) s" xdotool key Caps_Lock" system ;
\ triggers capslock just like pressing the key
I'm looking for a forth solution to make it more forth & less xdotool dependant & even external applicatin independant.
so I am looking for a solution to simulate by a word the capslock keypress.
gobli...@gmail.com schrieb am Donnerstag, 7. September 2023 um 12:00:10 UTC+2:
hello
currently I use an externol tool to do this in gforth over gnulinux station.
: caps ( -- ) s" xdotool key Caps_Lock" system ;
\ triggers capslock just like pressing the key
I'm looking for a forth solution to make it more forth & less xdotool dependant & even external applicatin independant.
so I am looking for a solution to simulate by a word the capslock keypress.Querying device status like num-lock or caps-lock is not part of the Forth world
but depends on your terminal and your OS.
IOW there is no generic fit-for-all solution.
currently I use an externol tool to do this in gforth over gnulinux station.
: caps ( -- ) s" xdotool key Caps_Lock" system ;
\ triggers capslock just like pressing the key
[..]
ONLY FORTH ALSO ASSEMBLER
code toto
$3A # al mov
$02 # ah mov
$80 # int
ret
end-code
that migth be also a solution but I failed as this creates a memory error on execution
I failed to find more documentation or examples to fix itMaybe examination — using gdb — what sequence of assembly commands 'xdotool key Caps_Lock' is sending, could give you the solution?
it is a good idea in concept but it cannot wark gbd run can dipay asm code only from the .o object file :)
I notice that the OP wrote "soytware" rather than "software."
On the Dvorak keyboard, the Y and F are adjacent, but not on the Qwerty,
so I assume that a Dvorak keyboard was being used.
hello
currently I use an externol tool to do this in gforth over gnulinux station.
: caps ( -- ) s" xdotool key Caps_Lock" system ;
\ triggers capslock just like pressing the key
I'm looking for a forth solution to make it more forth & less xdotool dependant & even external applicatin independant.
so I am looking for a solution to simulate by a word the capslock keypress.
I ve been guided to https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/386-Assembler.html#g_t386-Assembler and https://gforth.org/manual/AMD64-Assembler.html abi-code solution
then I tried
ONLY FORTH ALSO ASSEMBLER
code toto
$3A # al mov
$02 # ah mov
$80 # int
ret
end-code
that migth be also a solution but I failed as this creates a memory error on execution
I failed to find more documentation or examples to fix it
any pure forth idea ?
any abi-code idea or fix ?
any documentation about the specific abi-code inside gforth ?
thanks
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 41:08:25 |
Calls: | 6,708 |
Calls today: | 1 |
Files: | 12,243 |
Messages: | 5,353,786 |