X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Fcapconvert;h=bcd56d3dc42a8c5d93f1ff8a8f68bff9c7a36216;hp=eb382e0bc86c268ba63f72ae3e270f90bbe00cb4;hb=5899b5e464ecec4b1613f6fef8cb7b75793c88e3;hpb=b7f1cb3f5063cb3a371f8f1c25c24d03a892a429 diff --git a/progs/capconvert b/progs/capconvert index eb382e0b..bcd56d3d 100755 --- a/progs/capconvert +++ b/progs/capconvert @@ -1,6 +1,7 @@ #!/bin/sh ############################################################################## -# Copyright (c) 1998-2006,2011 Free Software Foundation, Inc. # +# Copyright 2019,2020 Thomas E. Dickey # +# Copyright 1998-2011,2017 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -26,7 +27,7 @@ # use or other dealings in this Software without prior written # # authorization. # ############################################################################## -# $Id: capconvert,v 1.5 2011/11/12 23:28:07 Robert.Millan Exp $ +# $Id: capconvert,v 1.9 2020/02/02 23:34:34 tom Exp $ # # capconvert -- automated conversion from termcap to terminfo # @@ -179,7 +180,7 @@ else echo "I am going to assume this is the terminfo source included with" echo "the ncurses distribution. If this assumption is wrong, please" echo "interrupt me now! OK to continue?" - read ans; + read answer; ;; 2) echo "I see more than one possible terminfo source. Here they are:" @@ -205,14 +206,14 @@ echo "OK, now I will make your private terminfo tree. This may take a bit..." # # Kluge alert: we compile terminfo.src in two pieces because a lot of machines # with < 16MB RAM choke on tic's core-hog habits. -trap "rm -f tsplit$$.*" 0 1 2 5 15 +trap "rm -f tsplit$$.*" EXIT INT QUIT TERM HUP sed -n $master \ -e '1,/SPLIT HERE/w 'tsplit$$.01 \ -e '/SPLIT HERE/,$w 'tsplit$$.02 \ 2>/dev/null for x in tsplit$$.*; do eval $TIC $x; done rm tsplit$$.* -trap 0 1 2 5 15 +trap EXIT INT QUIT TERM HUP # echo "You now have a private tree under $HOME/.terminfo;" echo "the ncurses library will automatically read from it," @@ -251,7 +252,7 @@ else echo "Done." echo "Note that editing TERMCAP will no longer change the data curses sees." fi -echo "To do that, decompile the terminal decription you want with infocmp(1)," +echo "To do that, decompile the terminal description you want with infocmp(1)," echo "edit to taste, and recompile using tic(1)." # capconvert ends here