en cs

Screen manager tutorial

Nochetoclient tutorials

Using nocheto and nochetoclient with screen

Screen manager is a program which can divide your console window into several parts. It can by used to see nochetoclient analyzing current chess position in the same window as nocheto.

nocheto and nochetoclient in screen

If you want to open nocheto and nochetoclient with one command, create screenrc file with this content:

#blankerprg cmatrix -ab -u2
#idle 240 blanker
hardstatus alwayslastline "[%H] %w %=%D %d %M %c:%s %Y"
bind j focus down
bind k focus up
bind t focus top
bind b focus bottom
scrollback 1000
focus
screen
title nocheto
exec nocheto --ipv4
split
focus
screen
resize 5
title "nochetoclient -p 8001 --mode analyze"
exec nochetoclient -p 8001 --mode analyze
focus

Save it wherever you want (for example in ~/.nocheto/screenrc). Then you can run screen -c ~/.nocheto/screenrc. It runs nocheto in the top window and nochetoclient (in the analyze mode) in the bottom window.

You can also add alias into your ~/.aliases or ~/.bashrc file:
alias nochetoscr='screen -c ~/.nocheto/screenrc'

Unfortunately, there is a weird bug in the screen, which prevents nocheto to recognize changes of the screen size. Usually, the size of the moves tree (and other UI elements) adjust their size to the console size. But if you run nocheto as described above it gets the right size on start, but doesn't receive size update if you change the console window. So, be sure your console size is well adjusted before you run the screen.

Note: If you run screen without this config file and then you create the windows in it and run nocheto and client after, this problem curiously does not occure.

Nochetoclient tutorials