Page 1 of 1

sanekeys - keyboard tweaks for the BASIC programmer

Posted: Tue Jan 24, 2023 7:18 pm
by grml
This is a small utility that sits silently in the background and modifies the behavior of some keys in the BASIC editor. For example, pressing the Home or End key will now move the cursor to the start or end of the current line like on modern electronic computers, instead of the corner of the screen. It also allows you to use the mouse to place the text cursor anywhere on the screen.

Keyboard tweaks:
<Home>: Go to start of current line
<End>: Go to end of current line
<Page up>: move cursor to first screen line
<Page down>: move cursor to last screen line
<Ctrl+Left>: skip over word to the left
<Ctrl+Right> skip over word to the right

Mouse: click to place cursor

Option keys:
<Shift+F11>: Unload sanekeys
<Shift+F12>: Toggle sanekeys on/off

To move the cursor to the corner like in the olden times, press <Ctrl+Home/End> or <Alt+Home/End>.

#R41

Re: sanekeys - changes how the Home and End keys work

Posted: Thu Jan 26, 2023 3:13 pm
by grml
v0.2 breathes life into the PgUp and PgDn keys (and is 67 bytes smaller :D)

Re: sanekeys - changes how the Home and End keys work

Posted: Fri Jan 27, 2023 7:05 am
by Cyber
Nice idea actually.
For the authentic retro feel I would not use this program, but if you need to do a lot of work with text, switching your mind between modern and old behaviour of keys might be hard, so this should help.

Re: sanekeys - changes how the Home and End keys work

Posted: Fri Jan 27, 2023 8:03 am
by grml
For the authentic retro feel I would not use this new computer. :mrgreen:

I made this because every time I have to use the BASIC editor, it's driving me nuts. It was kind of okay back then at 40x25, but nobody got time to navigate a 80x60 screen like a troglodyte who just doesn't know any better.

Re: sanekeys - keyboard tweaks for the BASIC programmer

Posted: Fri Jan 27, 2023 5:04 pm
by grml
The heresy continues: v0.3 lets you skip over words/tokens in either direction with <Ctrl+Cursor left/right>.

Re: sanekeys - keyboard tweaks for the BASIC programmer

Posted: Sat Jan 28, 2023 7:49 am
by grml
New version v0.4: with the latest offensively modern feature you can now use your rolling-ball tank mouse to click and place the text cursor anywhere on your Commodore 1084 CRT screen. It's gross.

Slowly running out of "golden RAM" for code, but I think it's pretty much feature complete now.

Re: sanekeys - keyboard tweaks for the BASIC programmer

Posted: Sun Jan 29, 2023 11:02 am
by TomXP411
grml wrote: Sat Jan 28, 2023 7:49 am New version v0.4: with the latest offensively modern feature you can now use your rolling-ball tank mouse to click and place the text cursor anywhere on your Commodore 1084 CRT screen. It's gross.

Slowly running out of "golden RAM" for code, but I think it's pretty much feature complete now.
Holy Scancodes, Bitman! This is terrible! (And by terrible, I mean great!)

Re: sanekeys - keyboard tweaks for the BASIC programmer

Posted: Sun Feb 05, 2023 6:59 pm
by Adiee5
doest this work? bc it seems it doesn't

Re: sanekeys - keyboard tweaks for the BASIC programmer

Posted: Mon Feb 06, 2023 10:18 am
by grml
Heh, I love me some detailled bug report.

You're probably doing it wrong, but it's hard to tell because you didn't give any useful information. Wrong emulator version maybe? What happens?

Re: sanekeys - keyboard tweaks for the BASIC programmer

Posted: Thu Oct 12, 2023 5:49 pm
by voidstar
Not working for me on R44 emulator.

did LOAD "SANEKEYS.PRG
it says loaded from $0801 to $0B29

That's only about 40 bytes, but the PRG is over 800 bytes?

LIST didn't show anything, not even a SYS.

Didn't see any effect from PGUP/PGDN, or did MOUSE1 and didn't see responses from mouse.

Stock R44 seems to have the HOME/END (end going to last character on current line).

Still a neat idea and would like to see it work (and understand how it is working), but for this isn't working for me.