This is a work licensed under the terms of GPLv2.
ABSOLUTELY NO WARRANTY!
Created by eXerigumo Clanjor (哆啦比猫/兰威举), 2010-2012.
Clone this repo by using:
git clone https://github.com/cjxgm/led.git
You can build led
by using:
make
Or, just type:
make debug
The latter one will build led
and run it.
If you want to clean up the source code directory, you can try:
make clean
or
make cleanall
The latter will do the same thing as the former, but with executable removed.
Just
make install
You need root account or sudo
to do this.
If you don't like led
, you can uninstall it by:
make uninstall
You need root account or sudo
to do this.
Once you fire up led
, you will see the led
logo, then press any key
to get into the main interface. In the main interface, you can use
led
commands to operate on the text.
Commands are all one-character ones. '+' means finished.
c + create a new file
l + load a file
s + save to a file
a + append to current line
i + insert to current line
d + delete current line
D + delete current line and the following few lines
n + next line
N + next a few lines
p + previous line
P + previous line
f + find forward in the file
F + find backward in the file
v + view all (20 lines at a time)
V + view all (a few lines at a time)
q + quit
h + head
t + tail
> + go to line
? + help
<bs>+ <backspace>, remove the last character of current line
<cr>+ <return>, new line next to current line.
<sp>+ <space>, find next
If you tried the command 'a', then you will see the prompt ':'.
There are 2 types of prompts in led
. They are:
: You should input a string, then press RETURN key.
You can also just press the RETURN key to cancel.
> You should input a integer number, then press RETURN key.
You can also just press the RETURN key to cancel.