text editor in console

Project:JNode Core
Component:Miscellaneous
Category:feature request
Priority:minor
Assigned:Unassigned
Status:closed
Description

I think we need a console editor in JNODE like vi/nano/...

I think there are 2 ways:
1.write in swing, then port in charva.
2.write directly using the TextConsole class.

The first one is easier, isn't it?I have never used charva before, hehe.

we have many ones

we already have many editors :
- the cat command (like the one from *nix operating systems).
- the jnote editor (based on charva)
- a basic swing editor (that can be run in GUI mode)

Fabien

leed

Not to forget leed the 1337 editor Smiling

Charva has some bugs especially when it comes to big textfields, so levente created leed sometime back. It is easy and fast Eye-wink

cat is not convenient

cat is not convenient
the other tow cannot use in console?

cat is not an editor

In some usage patterns, it is a write-only text entry mechanism ... and a very primitive one at that.

One thing standing in the way of implementing a console-mode editor is that the console subsystem doesn't provide "terminal" emulation. A classical screen editor like vi or emacs runs on a terminal by sending special character sequences to the terminal output stream that move the text cursor, delete characters, set colors and so on. On a UNIX-like system, the editor typically uses TERMCAP files to tell it what the sequences are for a given type of terminal. This allows an editor to be usable on almost any "glass terminal" ... without any code changes.

If we had terminal emulation in the console, and we implemented TERMCAP (or equivalent) we could implement an editor that runs on the console, on a terminal attached to a serial port or on a remote terminal emulator; e.g. xterm.

I propose that we 'close' this issue ...

... since we already have at least one reasonable console editor.

#1

Status:active» closed