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

12 lines
185 B
Nix
Raw Normal View History

{ ... }:
{
text = ''
# Get terminal size.
function tsize() {
local width=$(tput cols)
local height=$(tput lines)
echo "''${width}x''${height}"
}
'';
2024-04-06 03:03:58 +03:00
}