Telechore Usage What's new Play Feedback

These pages are for Telechore 0.6.0 — what's new in it.

The terminal

The terminal is a shell on the server you are browsing, in the same window. It uses the SSH connection that is already open, so it needs no second login and no second password.

It starts in the folder you are looking at. Opened from a server's row, with none of its folders on screen, it starts in the server's “Initial path”. A folder that cannot be entered ends the session, with the reason on screen.

If the server has a “Remote command”, that runs instead of your login shell, in the same folder.

A size of your own

By default the terminal fits the screen. On a phone held upright that is about 33 columns, which is too narrow for tmux, htop or anything with a table (see “Size” in Servers).

“Fixed”, in the server's “Terminal” part, keeps a set number of columns and rows (80×24, 100×30 and 132×43 are a tap away). Programs are never told another size, and the header shows it beside the host, where the screen is wide enough for both (a phone held sideways, a desktop). So if a program does not reflow when you resize the window, the setting is working. The screen is a window onto that fixed-size terminal:

On a desktop Ctrl+drag (Cmd+drag on a Mac) pans the terminal (across only with “Fixed columns”) and Ctrl+wheel zooms it; the type size is settled when you let go of Ctrl. A link opens with a click, or with Ctrl+click (Cmd+click on a Mac) where a program has taken the mouse; a Ctrl+click that does not move is still a click. A plain wheel scrolls the history. Ctrl+double-click or Ctrl+0 (Cmd on a Mac) resets the view the way two fingers held do on a phone: back to how it opens after a pan or zoom, otherwise on to the next size of its cycle. A Ctrl+double-click on a link opens the link as well.

The lens

With “Fixed” or “Fixed columns”, “View” in the server's “Terminal” part can be “Lens” instead of “Flat”. The whole terminal then stays on screen: the part you are working in, the focus, is drawn at full size, and the rest is squeezed toward the screen's edges, more the further away it is. You see what is happening elsewhere at a glance, and bring it in when you need it. Programs see the same columns and rows either way.

The keyboard

The keyboard stays up while you use the buttons, and what you type goes to the shell. If it does go away, tap the terminal to bring it back.

“Taps as mouse clicks”, under “Behaviour” in the “Terminal” part, decides what one finger does where a program is listening for clicks: tmux, vim and htop can take a tap as a click and a drag as a scroll wheel. When it is off, one finger always selects and scrolls. The extra keys send keys either way, never clicks. On the extra keys, “Laptop keys” and “Coder keys”, a tap in the gap between keys, or on the margin beside them, does nothing: it types no key and does not reach the shell.

The extra keys

Fourteen keys a phone keyboard lacks: Esc, Tab, Ctrl, Alt, the arrows, Home, End, PgUp, PgDn, Ins and Del. Where there is room for two rows, they are laid out like a keyboard:

Esc  Tab  Home  ↑   End  PgUp  Ins
Ctrl Alt   ←    ↓    →   PgDn  Del

The arrows are an inverted T, and Ctrl and Alt are bottom left, where a keyboard has them. Where the width allows a single row, the modifiers are on the left and the arrows on the right:

Ctrl  Alt  Esc  Tab   Ins  Del  PgUp  PgDn   Home  ←  ↓  ↑  →  End

Ctrl and Alt apply to the next key when tapped: press Ctrl, then C. Held, they work as on a real keyboard: hold Ctrl and tap ← to move a word. An arrow or Del held down repeats. In the header, where the keys sit among the page's own buttons, each is a single press. Arrows work in the shell and in vim alike. Del is not Backspace: Backspace deletes the character before the cursor, Del the one under it. Ins is there for vi.

The keys show signs rather than names, the same on the extra keys and on “All keys”:

Sign Key
a circle with an arrow leaving it Esc
an arrow into a bar (pointing left while Shift is on) Tab (Shift+Tab)
a key shape with a cross, pointing left or right Backspace, Del
a text cursor with a plus Ins
a bar and a triangle Home, End
two stacked triangles PgUp, PgDn
a caret; the Option sign Ctrl; Alt
three bars the keyboard key, on “Laptop keys” and “Coder keys”

You choose which keyboard you use and where the extra keys sit. The “Keys” button in the header puts the keyboard away and brings it back; a long press on it, or the small ▼ beside it, opens the “On-screen keyboard” menu:

The button at the right of each of those two rows opens that keyboard's colours: the floating extra keys', and the full keyboard's, which both its types share.

Keeping your keyboard setup

What you choose in this menu — which keyboard, its type, keys, size, split, colours and ink, where you dragged it, whether the header and the system keyboard float — and the colours you tune are your keyboard setup. Where things sit is kept separately for each shape: portrait and landscape, on a phone or tablet or a desktop filling its screen, and a desktop window that does not. Ink and colours are kept separately for the light and dark themes.

Until you have placed it, the full keyboard opens a few rows above the bottom, as the server's settings say, so the prompt stays in sight. “Copy what I select” and “Any type size”, below the line, belong to this device. They are not part of a keyboard setup. The same menu has “Header floats”: when it is on, the header floats see-through over the top row, so a short screen spends none of its height on it. Floating, it shows icons rather than words, in amber so it is not taken for keys, and leaves out the host; a click or tap anywhere but a button goes through to the terminal under it. Either keyboard of ours may be dragged up over it; a key over one of its buttons is the key. It is remembered per orientation like the rest of this menu, and is on by default in landscape on a phone.

Not floating, a header too narrow for its words shows marks only. Hold its background, the server's name or the host for about a second. It fills with colour as you hold, then every button shows its words. The terminal shrinks by the rows those words take, and programs are told the new size. Tap the header's background again, or hold it, for the marks.

Where the screen is too short for it — a phone held sideways with its keyboard up — the header steps aside, floating or not, and comes back when you put the keyboard away. Messages then show at the top of the screen for a few seconds. The extra keys move to a strip above the keyboard, and where even that leaves the terminal too little room, they step aside as well.

Leaving the terminal from the keyboard

Tab and Esc go to the shell, so they cannot also move you out of it. Press Ctrl+Shift+Tab to go back to the header, or Ctrl+Tab to go on to the keys at the bottom. Nothing you had typed is lost. Tab from the header, Shift+Tab from the first key, or a click puts you back where you were.

Copying and pasting

Ctrl+C and Ctrl+V belong to the shell (one stops a program, the other types the next key literally), so copy and paste use the keys other terminals use:

“Copy what I select”, on the keyboard menu, copies a selection as soon as you let go, as many desktop terminals do. It is on by default. Turn it off if you want to keep something on the clipboard while you read.

In a program that uses the mouse, such as tmux, zellij or an editor, the selection belongs to that program, so what it copies reaches your clipboard. Hold Shift while you drag to select in the terminal instead, as in any terminal.

With a finger, a quick drag scrolls, so selecting starts with a hold:

On a phone there is no Ctrl or Insert key. Hold a finger on the shell without moving and a small menu offers Paste, and Copy when something is selected. Held on a link the program printed, it also offers “Open link”, which opens it in your browser, and “Copy link”. The Ins key among the extra keys pastes when you hold it, and copies when you press Ctrl first. On “Laptop keys” and “Coder keys”, Ctrl+Ins and Shift+Ins work as they do anywhere.

It is the device's normal clipboard, shared with every other app.

Finding in what the shell printed

The magnifier in the header, or Ctrl+Shift+F (Cmd+F on a Mac), opens “Find” under the header. Type, and every match is marked, the newest first. Case counts only when you type a capital. Text you had selected is the search to begin with.

Whichever keyboard is up types into the box: the system keyboard, or Laptop keys and Coder keys. Tap the shell to type there with Find still open; tap the box to go back to it.

Nothing changes size while Find is open, so a program never redraws under it. In a program with a screen of its own, such as tmux, vim or less, only that screen is searched, because the program keeps its own history. The box shows “ⓘ” there; tap it for the program's own search keys. The box moves out of the match's way.

Repeating a line you typed

Every line you type at a shell, or at a program that reads lines such as python or psql, is kept as you press Enter: the last 100 for each server, on this device. “Recall”, the head with a turning arrow beside the magnifier, opens the list. So does Ctrl+Shift+R (Cmd+Shift+R on a Mac), which closes it again, and “Recall a typed line…” in the menu a held finger opens. Ctrl+R still reaches the shell's own search.

A line typed at a password prompt is not kept, nor one the server did not show as you typed it. Lines cannot be pasted into a program that has the whole screen and did not ask for pasted text, such as htop or less, where each letter would arrive as a key; the list says so there.

Laptop keys and Coder keys

A phone in landscape with the system keyboard up has three or four rows of shell left. “Laptop keys”, under “Our own keyboard” on the menu, hides the system keyboard and shows the app's own: a number row, the letters, Esc, Tab, Del, the arrows and the modifiers, laid out like a laptop's. It is offered where the screen is wide enough: a phone turned sideways, or a tablet. On a phone held upright there is no room for it, so “Our own keyboard” is greyed and says none fits; where only one of the two types fits, the other is greyed, and holding the pointer over it says why. In portrait the extra keys over the system keyboard fit better.

It is drawn behind the terminal's text by default: the background is see-through over the keys and the text stays solid. “Full keyboard” on the server's “Terminal” tab can put it in front instead, see-through, so the text underneath stays readable and a coloured status line keeps its colour through the keys.

“Coder keys”, the other “Type”, is a second keyboard of the same kind for typing code: a row on top holds ~ ! @ # $ % ^ & * ( ) _ +, and the sides add PgUp, PgDn, { } < > ? : " |, Ins, Home and End, each on a key of its own. There is no Fn key. Shift on a digit is an F-key (Shift+1 is F1, Shift+= is F12), and Shift on a symbol above it is Shift and that F-key. Caps Lock, at the left of the home row, types letters in capitals and leaves digits and symbols alone; Shift turns a letter back to lower case. Programs see the keys a real keyboard would send. It needs a little more width than “Laptop keys”, so a screen that fits one may grey the other. The settings below are shared between the two.

Five settings on the menu go with both:

The keyboard opens a row or two above the bottom of the screen, so the line you are typing is never under it. Drag it by either keyboard key — the keys with three bars — to move it up or down; a tap on one still does what it always did. How far up it opens is set per server, as Keyboard opens this many rows up on the Terminal tab, so a status line at the bottom stays visible on every device.

On this keyboard Ctrl, Alt, Shift and Fn work as real modifier keys: hold one and tap another key, or tap it alone to apply it to the next key. Backspace, Delete, the arrows and Space repeat while held, when no other key is down beside them but a modifier: Shift+→ held keeps selecting. Shift works on Tab and the arrows too — Shift+Tab steps back through completions — and Alt+Backspace deletes a word.

Fn reaches the keys a laptop hides behind it:

Fn and sends
1 … 0, -, = F1 … F12
↑ / ↓ PgUp / PgDn
← / → Home / End
Del Ins
⌫ Del

It combines with the others, so Ctrl+Fn+↓ is Ctrl+PgDn and Shift+Fn+Del is Shift+Ins, the paste.

A program that asks for the kitty keyboard protocol gets it from these keys, so Shift+Enter starts a new line rather than sending in programs that tell the two apart, and Esc answers at once in helix and zellij.

Shift locks with two quick taps, or when held on its own: it then stays on for every key, symbols included, and the Shift keys show a thicker ring. One more tap lets it go.

The keys are labelled with what they will send: capitals and the shifted symbols while Shift is on, and F1–F12 and the signs for PgUp/PgDn, Home/End and Ins while Fn is. A tap on the keyboard key (three bars) brings back the system keyboard for anything this one cannot type; the Keys button in the header brings this one back.

“System keyboard floats”, also on the menu, asks the system keyboard to sit over the terminal instead of pushing it up, so a floating or one-handed keyboard works over a fixed-size shell. It is off by default, and shows N/A where the device cannot do it, which includes Android.

Passwords and passphrases

When a password or key passphrase is needed, the box asking for it appears over whatever is on screen, in the same window. On a phone that is the only place it can go, and on a desktop it keeps the box from opening behind another window.

Keeping a terminal

“Keep”, in the header, keeps the terminal running when you leave it. Go to the files or to Servers and come back, and it is there as you left it, with what it printed meanwhile. Tap Keep again to turn it off; the terminal then closes when you leave it, as any terminal does without Keep.

What it does not do yet