nix/home/program/bash/module/Terminal.nix

12 lines
185 B
Nix

{ ... }:
{
text = ''
# Get terminal size.
function tsize() {
local width=$(tput cols)
local height=$(tput lines)
echo "''${width}x''${height}"
}
'';
}