Skip to content

Main window

serg3295 edited this page Nov 1, 2023 · 4 revisions

Main Window

Russian version

Terminal

In terminal window (1) you can see output from device. Data sent to device (6) and received from device (7) are listed in different colors.

Also, the user has the ability to output colored messages from their programs to the terminal, for example, when displaying logging messages. A limited set of ANSI codes is supported:

  • 0;31m Red
  • 0;32m Green
  • 0;33m Yellow
  • 0;34m Blue
  • 0;35m Magenta
  • 0;36m Cyan

The color encoding format can be either without specifying Font Effects or with it. That is, constructions like [31m, [32m ..., and [0;31m, [0;32m... are allowed.

The first option is obviously more convenient for user-programmable output. It should be noted that changing the Font Effects digit will not affect the output to the terminal. It will simply be ignored and always set to normal.

Example for test output of colored strings:

local fgColor = {
  red     = '\027[31m',
  green   = '\027[32m',
  yellow  = '\027[0;33m',
  blue    = '\027[0;34m',
  magenta = '\027[0;35m',
  cyan    = '\027[0;36m',
  reset   = '\027[0m' ,
}
local data = {
  red     = ('%s$> Red    |%s'),
  green   = ('%s$> Green  |%s'),
  yellow  = ('%s$> Yellow |%s'),
  blue    = ('%s$> Blue   |%s'),
  magenta = ('%s$> Magenta|%s'),
  cyan    = ('%s$> Cyan   |%s'),
}
for color, message in pairs(data) do
  print(message:format(fgColor[color], fgColor.reset))
end

To clear terminal use button (8) on the right. If you scroll terminal up it will automatically stop scrolling to bottom. To restore this behavior press button (9) on the right.

Command Input

Use this input (2) to write or paste command. Command will be posted to device after pressing Return button or pressing button (10) on the right. Use Up/Down keys to navigate command history. History size can be adjusted in Command History Size.

Status Bar

In status bar (4) you will find device info: free heap, free SSPIF, modules, etc. Hover status bar cells to see what they mean. By clicking any cell you can update displayed info.

Devices and files tree view

Here (5) you will find all connected NodeMCU devices (11). With right click connect to it. When connected extension window will open and tree will be populated with files on device. With right click on file (12) you can run commands on in. When extension window is closed device will be disconnected.

Format ESP

There is the Format button on right panel of the terminal. When you click on it, you will be prompted to format the ESP. This operation can take up to 30 seconds depending on the size of the flash and the architecture of the chip.

Clone this wiki locally