I once had a Macbook and it broke down. I managed to enter Recovery mode and happily found Terminal.app and Safari there. But that Safari was too old so I wrote a bash script to read novel. I thought reading in a terminal is nice so I migrate the script to node.js and added some awesome features after I got a new laptop.
Download
$ git clone https://github.com/ForkKILLET/TerminalXbqg.git
$ cd TerminalXbqg
$ yarn
$ chmod 755 main.js # if necessary
Link
Add
$ alias xbqg="/path/to/TerminalXbqg/main.js"
or
$ export PATH="$PATH:/path/to/TerminalXbqg"
to your terminal profile. (e.g. .zshrc
)
Configure environment variables
$ export XBQG_DATA="/path/to/..."
Add this to the profile too.
Q: How to add a book?
A:
xbqg config source.list
to get the source list.xbqg source ibiqu
to switch the source. (This step will be unnecessary after adding a book mark because TerminalXbqg supports automatical source switching.)94525/153378216
。xbqg fetch 52542/20380548
to fetch the chapter. Then you can close the brower and enjoy the immersive experience of reading in terminal.fetch_prev(p, [)
& fetch_next(n, ])
to turn page, book_mark
to add books to your bookcase,book_show
to show the bookcase,watch
update, interactive
mode, etc. There are two short forms (letter and symbol) of each commands for quick input. You can run help
to get information of all commands, or help watch
and more to get information about a specific command.Q: Why does the text contain weird characters?
A: They are from the xbqg websites, however, replacer
can help.
Q: I'd like to add new source, how?
A: You have to edit source.list
in $XBQG_DATA/setting.json
. replacer
is also defined here.
Q: My settings went wrong.
A: Try xbqg config_reset
.
Q: TerminalXbqg doesn't work on xx OS.
A: Sorry, I've only tested it on:
You may raise an issue here.
Require node.js > v16.
interactive (!)
and watch (..)
around
, pagewarner
and useCornerBracket
book_fetch (@)
, hook (automatical book_mark)
, autoSwitching