mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
Tweak the formatting of this new function to better conform to coding guidelines.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -264,20 +264,18 @@ char *term_prompt(char *outbuf, const char *inbuf, int maxout)
|
|||||||
return outbuf;
|
return outbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* filter escape sequences */
|
/* filter escape sequences */
|
||||||
void term_filter_escapes(char *line)
|
void term_filter_escapes(char *line)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < strlen(line); i++) {
|
for (i = 0; i < strlen(line); i++) {
|
||||||
if (line[i] == ESC) {
|
if (line[i] != ESC)
|
||||||
|
continue;
|
||||||
if (line[i + 1] == '\x5b') {
|
if (line[i + 1] == '\x5b') {
|
||||||
switch (line[i + 2]) {
|
switch (line[i + 2]) {
|
||||||
case '\x30':
|
case '\x30':
|
||||||
break;
|
|
||||||
case '\x31':
|
case '\x31':
|
||||||
break;
|
|
||||||
case '\x33':
|
case '\x33':
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -290,7 +288,6 @@ void term_filter_escapes(char *line)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
char *term_prep(void)
|
char *term_prep(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user