2. The terminal and your workspace

The command bar and function codes

The command bar is the one place you type everything: a function code, then what it applies to (DES AAPL), or plain words to search; it answers "how do I open X?".

  • 5 min
  • 3 questions
  • Lesson 2 of 9

Why you would care

In most apps you click through menus. In Gloom you type: a trader who wants Apple's options chain types OMON AAPL and presses Enter. Slower for one hour, much faster after.

The idea from scratch

A function code (traders also say mnemonic) is a short code for one screen: DES = description, HP = historical prices, N = news. Many follow the Bloomberg Terminal's codes, so people coming from there feel at home.

A command is built like a short sentence:

You typeVerbObjectWhat opens
DES AAPLDES (overview)AAPLApple's overview page
QQ NVDA, AAPL, MSFTQQ (quote board)a listthree tiles side by side
SA NVDA above 240SA (set alert)ticker, condition, pricea new price alert
CNCN (company news)nothingnews for the ticker you are on
ERNERN (earnings)nothingthe market's earnings days

Two rules hide in that table:

  • Lists use commas. QQ NVDA, AAPL, MSFT. Where a function takes a list, the name of one of your watchlists works too, and a list pasted into the bar offers Add N symbols to a watchlist first.
  • No ticker means "the one I am on". Many functions, typed alone, use the ticker of the pane you are looking at (the focused pane), or show a market-wide view.

The ticker can also come first, in the order the Bloomberg Terminal uses: NVDA DES and NVDA US Equity DES read as DES NVDA. A query that is a whole listing code stays that listing, even when its last word is also a function: SAP GR is SAP on Xetra.

A link can type a command for you in Gloom in your browser: term.gloom.sh/?fn=ERN&arg=NVDA opens NVDA's earnings, as typing ERN NVDA would. The argument is one ticker or a comma list.

See it in Gloom

Gloom screenshot: The command bar after typing GP AAPL
The command bar after typing GP AAPL: it reads the code and the ticker, says what will open ("Graph Price for AAPL"), and lists the matching pane. Press Enter to open it. From the public product screenshots.
Gloom screenshot: What QQ NVDA, AAPL, MSFT, ..
What QQ NVDA, AAPL, MSFT, ... opens: one tile per ticker. The command bar turned one line of text into this pane.

Open itpress Ctrl+P anywhere. In the desktop app, Cmd+K (Mac) or Ctrl+K also work. Press ` ` (backtick) to search for a ticker for the focused pane: Enter changes that pane, Shift+Enter` opens a new one (see lesson: Panes, focus and linking).

Inside the bar, the keys that matter:

  1. Type a code, a ticker, or words. A typed ticker lists its listings at once, the US one first; BTC, ETH and SOL find the coin (BTC-USD).
  2. Up / Down (or Ctrl+P / Ctrl+N) move through the results.
  3. Tab accepts a suggested argument when the bar offers one, so you type less.
  4. Enter runs the selected result; Shift+Enter its secondary action. Where they differ, the end of the prompt says so: on a ticker, with a DES pane focused, Enter here · Shift+Enter new pane in the terminal.
  5. Esc closes the bar. Ctrl+U clears what you typed; Ctrl+W deletes the last word.

A few things the bar does on its own:

  • Forms. Commands that need more answers (New Portfolio, Add Alert) open a small form. Enter goes to the next field, Ctrl+S sends it.
  • Plain words. Text that is not a code searches tickers and company names. Signed in with a verified email, the bar can also suggest commands for a plain-English request (rows marked ✦), and a question such as why is NVDA down? offers to open Ask Gloom.
  • Missing plugin. Typing the code of an official plugin you do not have yet (like TV) offers to install it.
  • Your own keys. After you type a full command, a Bind a key row lets you put it on a key, like F5 for CN.

Practice and recap

Try it2 tasks
  1. Without the app: write the command that opens a quote board for SPY, QQQ and GLD. (QQ SPY, QQQ, GLD.)
  2. You are on a DES TSLA pane and type CN alone. Whose news opens? (Tesla's: the focused ticker.)
Common mistakes3 mistakes
  • Forgetting the space: DESAAPL is one word the bar cannot split. Type DES AAPL.
  • Using spaces instead of commas in a list. Use QQ NVDA, AAPL.
  • Typing a bare code like CN while focused on the wrong pane, then wondering why it shows another company.
Check yourself3 questions
  1. What is the difference between Ctrl+P and the backtick key?
  2. What does Tab do inside the command bar?
  3. You type CN with no ticker while a DES MSFT pane is focused. What opens?
Answers
  1. Ctrl+P opens the full command bar (functions, tickers, actions); the backtick opens ticker search for the focused pane, so Enter changes that pane.
  2. It accepts the argument the bar suggests, when it suggests one.
  3. News for MSFT, the focused ticker.
Words in this lesson3 words
function code (mnemonic)
the short code of one screen, like DES or HP
argument
what the function applies to: a ticker, a list, a price
ticker search
the part of the command bar that finds tickers by symbol or name

Educational material about reading market data, not investment advice.