X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftrace%2Fvisbuf.c;h=17b590a725291a1851b654c7d5951273f6eed71a;hp=581bfbd259bd5a76862dd09616fdbcc8acb40f82;hb=6b4f5830b7910188b532d661f79775306715f67e;hpb=b60a2772d9f149d8e900c1d5a09a53a56a0837a8 diff --git a/ncurses/trace/visbuf.c b/ncurses/trace/visbuf.c index 581bfbd2..17b590a7 100644 --- a/ncurses/trace/visbuf.c +++ b/ncurses/trace/visbuf.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2001-2016,2017 Free Software Foundation, Inc. * + * Copyright (c) 2001-2017,2019 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 * @@ -42,7 +42,7 @@ #include #include -MODULE_ID("$Id: visbuf.c,v 1.49 2017/10/21 23:34:20 tom Exp $") +MODULE_ID("$Id: visbuf.c,v 1.50 2019/02/16 21:18:42 tom Exp $") #define NUM_VISBUFS 4 @@ -80,6 +80,9 @@ _nc_vischar(char *tp, unsigned c LIMIT_ARG) } else if (c == '\b') { *tp++ = '\\'; *tp++ = 'b'; + } else if (c == '\t') { + *tp++ = '\\'; + *tp++ = 't'; } else if (c == '\033') { *tp++ = '\\'; *tp++ = 'e';