DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th August 2019
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 84
Default Two very basic questions about readline(3) and indent(1)

deleted

Last edited by Prevet; 2nd December 2022 at 03:47 PM.
Reply With Quote
  #2   (View Single Post)  
Old 14th August 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by Prevet View Post
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.
Tab is ^I
Reply With Quote
  #3   (View Single Post)  
Old 15th August 2019
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

According to style(9), the OpenBSD kernel source uses KNF (Kernel Normal Form) coding style, which is also referred to in the source for the indent(1) program in the OpenBSD base install. (See /usr/src/usr.bin/indent/README.)

So it's possible, likely even, that the default state for indent(1) is to reformat to KNF style without needing an ~/.indent.pro file at all.

I tested it on a couple of C source files I had lying around and the results look correct, but I'm not familiar enough with the KNF style to say for definite. Might be worth a shot though.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
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


All times are GMT. The time now is 07:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick