Skip to content

Instantly share code, notes, and snippets.

@tylerflint
Created October 13, 2016 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerflint/2703f1a60973484a2eaa99c29bd3db35 to your computer and use it in GitHub Desktop.
Save tylerflint/2703f1a60973484a2eaa99c29bd3db35 to your computer and use it in GitHub Desktop.
Test line reset on *nix
#!/bin/bash
echo "+ Building application : "
echo " √ Pulling latest docker image "
echo " √ Starting docker container "
echo " √ Preparing environment for build "
echo " √ Installing binaries and runtimes "
echo "hey"
echo "there"
echo "buddy"
sleep 1
# move up a line
echo -e -n "\x1b[1A\x1b[K"
echo -e -n "\x1b[1A\x1b[K"
echo -e -n "\x1b[1A\x1b[K"
# echo -e -n "\x1b[K"
echo "4"
echo "5"
echo "6"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment