Elio Blanca | 8 Oct 2005 17:25
Picon
Favicon

help for a micro distro

Hi,
i'm trying to build a micro distro puttin' my favourite tools onto two 
floppy disks and i would like to use nano also, but when i launch 'nano' 
it doesn't open its window telling: "Error opening terminal: linux." and 
quits.
So, what does this error mean? i really don't know. I have the 
environment variable TERM=linux and the file /etc/termcap does contain 
an entry called linux, what am i missing? Do i need some particular file?
Thank you,
topolinik
Chris Allegretta | 8 Oct 2005 17:41

Re: help for a micro distro

On Sat, Oct 08, 2005 at 05:25:40PM +0200, Elio Blanca wrote:
> Hi,
> i'm trying to build a micro distro puttin' my favourite tools onto two 
> floppy disks and i would like to use nano also, but when i launch 'nano' 
> it doesn't open its window telling: "Error opening terminal: linux." and 
> quits.
> So, what does this error mean? i really don't know. I have the 
> environment variable TERM=linux and the file /etc/termcap does contain 
> an entry called linux, what am i missing? Do i need some particular file?
> Thank you,
> topolinik

Hello,

	It's likely that ncurses was configured to use terminfo by 
default, so you would need the file /usr/share/terminfo/l/linux.  Check 
the manual page for ncurses, there may be a way to tell the library to 
only use termcap without a recompile.  

Chris A
--

-- 
Chris Allegretta	http://www.asty.org

v2sw7CUPhw5ln6pr5Pck4ma7u7LFw0m6g/l7Di5e6t5Ab6THen7g6Ma29s5r3p7 hackerkey.com
_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-nano
(Continue reading)

re2823 | 26 Oct 2005 03:01

Suppressing the trailing newline / linefeed

Hi all.

Could anyone please tell me whether there is anyway to suppress the newline/linefeed which is normally
added to the end of a saved text file. In more detail, when I use nano (version 1.3.8, on Ubuntu 5.10), I enter
the text "123" and then use ctrl-O to save the file. If I then exit from nano and view the file using "od -tx1",
the result is:

user <at> machine:~$ od -tx1 myFile
0000000 31 32 33 0a
0000004
user <at> machine:~$

I would like to know whether there is any way to stop the addition of the linefeed character to the end of the
file (such as a compile-time option, an invocation option, or some other command).

Thank you,

Jaime 
higuita | 26 Oct 2005 22:21
Picon
Favicon
Gravatar

Re: Suppressing the trailing newline / linefeed

On Wed, 26 Oct 2005 02:01:11 +0100, re2823 <at> Safe-mail.net wrote:
> Could anyone please tell me whether there is anyway to suppress the 
> newline/linefeed which is normally added to the end of a saved text

	you can try cat > file
	press ctrl+d to end the file, before pressing enter

	AFAIK, no plain text editor dont add the newline, only hexeditors
	(or emacs maybe, as it have everything in it 8)

	good luck
higuita
--

-- 
Naturally the common people don't want war... but after all it is the
leaders of a country who determine the policy, and it is always a 
simple matter to drag the people along, whether it is a democracy, or
a fascist dictatorship, or a parliament, or a communist dictatorship.
Voice or no voice, the people can always be brought to the bidding of
the leaders. That is easy. All you have to do is tell them they are 
being attacked, and denounce the pacifists for lack of patriotism and
exposing the country to danger.  It works the same in every country.
           -- Hermann Goering, Nazi and war criminal, 1883-1946
_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-nano

Gmane