sanekeys - keyboard tweaks for the BASIC programmer

Post Reply
grml
Posts: 60
Joined: Sat Aug 13, 2022 8:31 pm

File Download sanekeys - keyboard tweaks for the BASIC programmer

Post 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
Attachments
sanekeys.prg
(809 Bytes) Downloaded 515 times
Last edited by grml on Sat Jan 28, 2023 7:45 am, edited 2 times in total.
grml
Posts: 60
Joined: Sat Aug 13, 2022 8:31 pm

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

Post by grml »

v0.2 breathes life into the PgUp and PgDn keys (and is 67 bytes smaller :D)
User avatar
Cyber
Posts: 482
Joined: Mon Apr 27, 2020 7:36 am

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

Post 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.
grml
Posts: 60
Joined: Sat Aug 13, 2022 8:31 pm

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

Post 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.
grml
Posts: 60
Joined: Sat Aug 13, 2022 8:31 pm

Re: sanekeys - keyboard tweaks for the BASIC programmer

Post by grml »

The heresy continues: v0.3 lets you skip over words/tokens in either direction with <Ctrl+Cursor left/right>.
grml
Posts: 60
Joined: Sat Aug 13, 2022 8:31 pm

Re: sanekeys - keyboard tweaks for the BASIC programmer

Post 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.
TomXP411
Posts: 1783
Joined: Tue May 19, 2020 8:49 pm

Re: sanekeys - keyboard tweaks for the BASIC programmer

Post 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!)
User avatar
Adiee5
Posts: 8
Joined: Thu Jan 26, 2023 7:08 pm
Location: Poland
Contact:

Re: sanekeys - keyboard tweaks for the BASIC programmer

Post by Adiee5 »

doest this work? bc it seems it doesn't
grml
Posts: 60
Joined: Sat Aug 13, 2022 8:31 pm

Re: sanekeys - keyboard tweaks for the BASIC programmer

Post 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?
voidstar
Posts: 494
Joined: Thu Apr 15, 2021 8:05 am

Re: sanekeys - keyboard tweaks for the BASIC programmer

Post 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.
Post Reply