add get terminal value

Signed-off-by: Jacobo Tibaquira <jacobotibaquira@gmail.com>