English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 26 July 2007, 19:45   #1
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
How to make bash behave like KingCON shell?

Is it possible to make a linux bash shell behave like Kingcon shell (KCON: device) on the amiga?

So far I managed to modify my standard cygwin bash to do:
"Tab" does a cycle-complete (cycles through possible commands)
EDIT: Oh, and even the cycle has a problem: you cannot cycle backwards, like in Kcon. Oh man.
"CTRL-Cursor keys" moves word by word,
"CTRL-DEL or Backspace" deletes word to the right or left

The one I am struggling with is this:
in kingcon, type some beginning of a command, press cursor up, and it cycles through the _full lines from history_ that match what you typed so far.

How do I get that in bash?
I suppose it is impossible?!
Only thing similar I found is the dynamic-history-complete command, but it only completes the command itself from history, and ignores all the rest of the history line.

Could it be that kingcon on the Amiga still blows them all away, even after decades?
rsn8887 is offline  
Old 26 July 2007, 21:36   #2
OddbOd
Registered User
 
Join Date: Jul 2005
Location: Australia
Age: 46
Posts: 666
The closest thing I can think of off the top of my head is reverse-i-search (Ctrl+R) but that only starts searching after you press the key combo, good luck with your hunt for kingbash
OddbOd is offline  
Old 30 July 2007, 22:51   #3
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
Thanks, that was almost it, I think I partly found what I was looking for:
"history-search-backward" and "history-search-forward".

Still dunno how to make the cycle completion for the command to go backwards as well as forwards (Shift-TAB goes backwards in addition to TAB going forwards).

Also missing how to make cycle-complete behave like KingCon in terms of completing the next common subpart of the expression you are typing _before_ starting to cycle through the options...
rsn8887 is offline  
Old 31 July 2007, 03:04   #4
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
Ok I figured out the backwards cycle complete with (shift-tab).
Guess I was not the only one being frustrated.
Still doesn't quite do completion as ingenious as kingcon.
EDIT: and, of course, bash still doesn't provide any of the advanced command line editing, that kingcon has, such as selection/deletion of parts with shift-cursor/shift-ctrl-cursor/delete. Amazing. So much for linux.

"kingbash" .inputrc so far (this is for cygwin distro):
Code:
"\M-[1;5D":backward-word #ctrl cursor moves word-wise
"\M-[1;5C":forward-word
"\M-[3;5~":kill-word #ctrl del/bspc kills word wise forward and backward
"\x7f":backward-kill-word
"\C-i":menu-complete #TAB cycles completion forwards
"\M-[Z":"\M--\C-i" #Shift TAB cycles completion backwards 
"\M-[A": history-search-backward #up/down completes matching history line 
"\M-[B": history-search-forward
"\M-[1;3D": beginning-of-line #alt cursor navigates line
"\M-[1;3C": end-of-line
"\x88": backward-kill-line #alt del/bspc kills line wise
"\M-[3;3~": kill-line

set completion-ignore-case On
(it is menu-complete with an argument of -1 that goes backwards on completion choices)

Last edited by rsn8887; 31 July 2007 at 03:34.
rsn8887 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clear background color for Shell window- Shell-StartUp fc.studio support.Apps 13 25 March 2022 18:52
ROM-able KingCON for 68000 kolla support.Apps 25 15 September 2017 18:58
intuition, kingcon in dopus4/os39 and screenborders hardwir3d project.ClassicWB 10 16 May 2008 12:00
Is there a way to make pointer behave like NTSC while still PAL is set ancalimon Coders. General 5 04 February 2008 20:11
Is this how you normally behave, or did you leave your brain at home? psittackĀ§ request.Demos 5 19 March 2005 12:37

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:39.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08393 seconds with 13 queries