![]() |
|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Q1) I'm using rlwrap with ed(1) and want to add tabs while I'm editing. Since tab is used for completions I have altered my .inputrc file, so a tab character is inserted if ctrl-t is pressed, which is not the greatest. So I thought I'd ask if anyone here that uses readline with a CLI editor, can suggest a better alternative keypress, to get around the fact that the tab key is already taken.
Edit: Forget that question. Maybe I can bind it to left or right alt or ctrl. Q2) I want to try some C programming the OpenBSD way and have been reading the man for style(9). At the bottom it suggests a program called indent(1) which has a lot of options. So I was wondering if there is an OpenBSD specfic .indent.pro file uploaded somewhere with those settings. I searched and found one for Arch Linux, but could not find anything for OpenBSD. If there isn't an official one, perhaps you have seen one on Github? ![]() Last edited by Prevet; 14th August 2019 at 02:44 PM. |
|
|||
![]() Quote:
|
|
|||
![]()
Thanks. So I could use "\C-i" as well as TAB.
I got it working a bit better. I made these changes to .inputrc to change the function TAB calls to tab-insert, only when ed is running. # rlwrapped ed $if rled # complete with ctrl-t instead of tab "\C-t": complete # insert a tab character instead of complete TAB: tab-insert $endif rlwrap is called with the flag --command-name rled So readline sees the above $if rled block. |
|
|||
![]() Quote:
So these are the settings I ended up changing: -st -ci4 -cli0 -di1 -nlp You also have to tell it about your typedefs and structs using the -T flag: -Tnameoftypedef1 -Tnameoftypedef2 ... Other than that, I couldn't see a flag for the way OpenBSD does spacing of variable declarations inside of structs, so that part has to be done by hand. Last edited by Prevet; 19th September 2019 at 05:55 AM. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD Installer / Install Script Basic Questions | daemonbak | OpenBSD Installation and Upgrading | 9 | 28th May 2015 01:56 AM |
Some basic questions regarding pkgsrc use | gezley | NetBSD Package System (pkgsrc) | 15 | 30th April 2015 04:25 PM |
openbsd basic questions | barti | OpenBSD General | 12 | 17th July 2012 08:38 PM |
basic rsync questions | unixjingleman | FreeBSD General | 5 | 27th May 2011 04:39 AM |
Basic starter questions ??? | dennky | OpenBSD Installation and Upgrading | 10 | 5th December 2009 07:21 PM |