[asterisk-bugs] [Asterisk 0017160]: [patch] CLI prompt interfers with CLI output

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 1 10:20:20 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17160 
====================================================================== 
Reported By:                coolmig
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17160
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.7-rc1 
JIRA:                       SWP-1463 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-04-09 16:20 CDT
Last Modified:              2010-06-01 10:20 CDT
====================================================================== 
Summary:                    [patch] CLI prompt interfers with CLI output
Description: 
Some characters of the CLI prompt are printed in the asterisk CLI output:

virtual2_ast2*CLI> cdr show status
virtual2_ast2*CLI> 
Call Detail Record (CDR) settings
----------------------------------
  Logging:                    Enabled
  Mode:                       Simple
  Log unanswered calls:       No

* Registered Backends
  -------------------
    csv2_ast2*CLI>              <<<-- Here
    cdr-customCLI>              <<<-- Here 
    pgsqlast2*CLI>              <<<-- Here

virtual2_ast2*CLI> core show channels
Channel              Location             State   Application(Data)       
     
0 active channels> 
0 active callsCLI>               <<<-- Here
0 calls processed> 
virtual2_ast2*CLI> 

This happens in a lot of commands.

Looks like in certain cases, when the line string has less than the CLI
prompt characters, the remaining characters are printed. This makes output
unclean.
====================================================================== 

---------------------------------------------------------------------- 
 (0122693) svnbot (reporter) - 2010-06-01 10:20
 https://issues.asterisk.org/view.php?id=17160#c122693 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 266598

_U  branches/1.6.2/
U   branches/1.6.2/main/asterisk.c

------------------------------------------------------------------------
r266598 | tilghman | 2010-06-01 10:20:20 -0500 (Tue, 01 Jun 2010) | 25
lines

Merged revisions 266592 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r266592 | tilghman | 2010-06-01 10:18:59 -0500 (Tue, 01 Jun 2010) | 18
lines
  
  Merged revisions 266585 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r266585 | tilghman | 2010-06-01 10:17:46 -0500 (Tue, 01 Jun 2010) | 11
lines
    
    Prevent CLI prompt from distorting output of lines shorter than the
prompt.
    
    Uses the VT100 method of clearing the line from the cursor position to
the
    end of the line:  Esc-0K
    
    (closes issue https://issues.asterisk.org/view.php?id=17160)
     Reported by: coolmig
     Patches: 
           20100531__issue17160.diff.txt uploaded by tilghman (license 14)
     Tested by: coolmig
  ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=266598 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-01 10:20 svnbot         Checkin                                      
2010-06-01 10:20 svnbot         Note Added: 0122693                          
======================================================================




More information about the asterisk-bugs mailing list