Someone post terminal control characters in AUR

like
[0;0H[4m[5m[97;107m[8m(0[2J
This causes the terminal displays "error".
this USER
and this Package

A user just posted a sequence of ASCII escape characters in the comments of an AUR package that I own without any explanation. I'm not about to enter it into my terminal since I'm not 100% sure what it does or if it has any malicious side-effects. Perhaps it was just a mistake on the user's end.
The sequence is
[0;0H[4m[5m[97;107m[8m(0[2J
[0;0H = move to first row, first column
[4m = set underline
[5m = set blink
[97;107m = set foreground and background to a high-intensity color
[8m = conceal
(0 = ?? Not an escape sequence, so I think they're just printed, but then what purpose does it serve?
[2J = clear the entire screen
So, I'm just curious what this does, if anything. Mainly it's that "(0" that I'm not sure about. If it's really nothing, then can a moderator please remove the comment?

Similar Messages

  • Converting control characters to spaces in a Unicode program?

    I want to take an ASCII character string and convert any
    ASCII Control Characters to Spaces.
    In a non-Unicode program, I define the following hex constant:
    CONSTANTS: c_control_to_space(64) TYPE x VALUE
      '00200120022003200420052006200720082009200A200B200C200D200E200F20' &
      '10201120122013201420012016201720182019201A201B201C201D201E201F20'.
    I then execute the following TRANSLATE statement:
          TRANSLATE w_transcript USING c_control_to_space.
    What would be the "approved" method of accomplishing the same effect
    in a Unicode program?

    Neil,
    First, thank you for pointing out my typo. You are correct that the "0120" in the second line of the literal was intended to be "1520".
    Second, thank you for your suggestion. Based on your idea, I tried something similar, but not exactly what you suggested. In particular, since I can't figure out how to construct the constant that I want, I used your idea to construct it as  a variable, as follows:
      DATA number TYPE i.
      DATA offset TYPE i.
      DATA hex(4) TYPE x.
      FIELD-SYMBOLS <char> TYPE c.
      ASSIGN hex TO <char> CASTING TYPE c.
      DATA w_control_to_space(64) TYPE c.
      DO 32 TIMES.
        hex = sy-index - 1.
        offset = 2 * ( sy-index - 1 ).
        number = STRLEN( <char> ).
        IF number GT 1.
          SUBTRACT 1 FROM number.
          SHIFT <char> LEFT BY number PLACES.
        ENDIF.
        w_control_to_space+offset(1) = <char>.
      ENDDO.
    After having constructed "w_control_to_space", I can now use the TRANSLATE statement:
      TRANSLATE w_transcript USING w_control_to_space.
    This code passes the Unicode syntax checks and works correctly on a non-Unicode system. I don't have access to a Unicode system on which to run it. I'd appreciate any feedback on this approach - especially if someone can actually test it on a Unicode system.

  • Control characters

    When using control characters like '}', '@' , '*' in the search string which gives a null result set, the user sees a proper message(no results found), but the log file is dumped with encrypted data.
    Whats the problem?
    Any help is appreciated.

    interMedia text is now Oracle Text and has it's own forum. You might get better response if you post your question there.
    Larry
    http://forums.oracle.com/forums/forum.jsp?id=477576

  • Removing unwanted control characters in exported text files

    I am currently evaluating Crystal Reports 2008 to determine applicability to our requirements. I need to export data files to continuous text to be read by other application software. I have successfully created the files but have what I believe to be page feed or end-of-page control characters (small rectangles) in the output. Can someone enlighten me as to how I can suppress or remove these control characters?

    In the export to text options enter 0 for the number of lines per page. This will produce an unpaginated text document without the page control markers.

  • Control Characters visible in code view

    Not sure how I managed to turn on this "feature" but when I'm looking at any .cfc file in CFBuilder I see lightly grayed out controll characters (like \n for new line or >> for tab, or ..... for spaces). Not a really big deal, but damned annoying when you're staring at it for a while. Does anyone know how to turn this off?

    I'll share that I point out that and many other little hidden gems in a talk of that name, available online:
    http://carehart.org/presentations/#cfbgems
    I realize you wouldn't have thought to look there for the answer, but I'm saying that if folks using CFB were to check it out, they may learn lots of other little surprises (solutions/features) like that. Hope it helps someone.
    /charlie

  • How are control characters handled in keyboard layouts?

    Warmup question: What exactly is the difference between an "input method" and a "keyboard layout"?
    Real question: What exactly happens when I switch keyboard layouts and enter control characters, and how can I change it?
    I'll use as an example Hebrew-QWERTY and the "a" key. That key maps to Hebrew character aleph or א. What happens when I press control-a?
    The Emacs text editor claims to receive a control-aleph, saying "^א is undefined". This is a very strange character: א with bit 26 set. It doesn't even have a Unicode codepoint.
    TextEdit normally responds to control-a by moving to the start of the line. It doesn't do so with Hebrew-QWERTY in force, hence it's not getting a control-a. I have no idea what it is getting.
    The goal, by the way, is to create a keyboard layout that does NOT change the mapping of control characters. I don't want control-a to send a useless control-aleph; I want it to send control-a as usual. But if I examine the Hebrew-QWERTY layout in (say) Ukelele, it knows nothing of control-aleph and claims to map control-a to itself as usual. Therefore something else is producing these weird control characters. Who?
    If I'm hopelessly confused, please don't hesitate to say so. I wouldn't be surprised to learn that I'm missing something simple but crucial.

    Tom Gewecke wrote:
    Regarding control characters, you might try posting a query on the Ukelele page -- the fellow who makes that app knows a lot about how all this works.
    Layout vs Method: Thanks for the clarification.
    Ukelele: I've already posted to the Ukelele-users Google group, thus:
    http://groups.google.com/group/ukelele-users/browse_thread/thread/b9c8aadfd6969c 15?hl=en
    If that's what you mean by "the Ukelele page", I'm all set (assuming he replies). If you meant somewhere else, please let me know. I didn't find an Apple discussion forum specifically for Ukelele.

  • Wrong ASCII values for control characters in Variables and Stack Call in CVI2013?

    Hi,
    I think there is an error in  "Variables and Call Stack" window if you want to look for your variables in ASCII format.
    The control characters (0 -  31) are not shown correct. They are shifted 2.
    For example:
    Character in Decimal format is 10 (LF) but when you are chancing to ASCII format it is showing \012.
    The same with 13 (CR). This character is \015 in ASCII format.
    I think that was no problem in CVI2012.
    Best regards
    Gunther
    Solved!
    Go to Solution.

    I'm not using CVI2013 yes so I cannot respond regarding this specific product, but the code you are showing are the octal equivalent of the decimal value you specified: it could be that control characters (or generally speacking non-printable ones) are replaced with their octal equivalent in string view.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • My daughter bought an 4th generation ipod classic without a charger.  We are using the charger from an ipod touch and it won't charge.  Someone posted online that not all chargers will work on the classic.  Anyone else have this issue and any suggestions?

    My daughter bought a 4th generation ipod classic without a charger.  The ipod was working just fine, but then we tried to charge it using a brand new charger for an Ipod Touch.  It won't charge and someone online someone posted that there ipod touch charger worked on the ipad, phone and whatever else he had but it wouldn't work on the classic.  Anyone else have this same issue?  Any solutions?

    The ipod did not come with a power cord as we purchased it used from ebay.  The ipod was half charged when we received it and it worked well enough to transfer songs to my computer (the previous seller didn't delete their 2000 plus songs).  My son then used the same cord on his computer to transfer the songs, but processed an update to the ipod and after that,it wouldn't work.  So, I'm not sure if we received a bum ipod, an update issue or we have a charger issue, but the cord we used to transfer the songs came from my son's brand new ipod touch.  We've also tried 2 other chargers from ipods we have in the house, 1 being a wall charger. 
    One individual posted online that he took his ipod classic, mac and phone overseas with one charger and it worked fine on all but the classic.  So, I'm thinking that they cords may not be universal.  Online I've read that it must be a 6 pin firewire, high power 2.0 usb cord.  Or that I need to purchase an applie charger.  We don't live close to an apple store and I'm reluctant to order one just to have it NOT work. 
    My daughter is learning the hard way that buying off of ebay is not always the best solution to a cash strapped 12 year old.
    Any other advice is greatly appreciated.

  • I get this message on my Facebook news feed when someone posts a YouTube video. Don't know why. It's worked fine for years. I am using Safari on my iPad. If I use the Facebook app it works fine. Any thoughts. Thanks,    Access Denied   You don't have

    I get this message on my Facebook news feed when someone posts a YouTube video. Don't know why. It's worked fine for years. I am using Safari on my iPad. If I use the Facebook app it works fine. Any thoughts.
    Thanks,
    Walid
    Access Denied
    You don't have permission to access "http://fbexternal-a.akamaihd.net/embed/?" on this server.
    Reference #18.3555facd.1362007289.6945153f

    Same thing on mine, it just started happening last weekend.

  • AppleScript puts control characters in txt file, inflating it enormously

    Hi all,
    I've come across a strange problem. I have an AppleScript file that puts up a dialog box at regular intervals asking me to write down what I am doing (to create an activity log). The file is saved to my Documents folder. This has been working just fine for several months (years), and now, all of a sudden, AppleScript fails on me. The reason is, the log file is inflated out of proportions because it contains hidden control characters (gremlins) between each letter and zillions of them between words and lines. Opening one of these files makes TextEdit go crazy ('Application not responding'). I discovered these gremlins when I opened the document in Classic mode with Word 5 (the best application ever to have been produced by MS, which allows me to remove them and make the file palatable to TextEdit again).
    But that doesn't solve the problem: Every entry continues to be inserted with another load of gremlins, and I can't understand why. I deleted preferences both for TextEdit and AppleScript, and I performed regular disk maintenance.
    TextEdit is set to save plain text files, end-of-line is Macintosh style, character set is Western Mac OS Roman. It's always been like this before when it worked ok.
    Any ideas?
    Thanks in advance.
    G4 MDD 1.25 GHz, 768 MB RAM Mac OS X (10.3.9)

    The solution to my problem can be found in the AppleScript forum here:
    http://discussions.apple.com/message.jspa?messageID=2353871
    With many thanks to reese_, who provided the solution, and to Tom, who directed me there!

  • Control Characters in Data

    I've created a simple table with 2 rows. When I query the table for an individual row (where id = 1), my return set has control characters in between 2 columns...sometimes.
    If I select * from the table, I get a core dump, then a Oracle sqlplus error message that wants to send a report to Microsoft. Once I decide to send/not send the message, sqlplus blows away.
    These 2 rows are actually 2 rows in a much larger table. I encountered this problem in the larger table, thought my data was corrupted, so I created the exact same table, in a totally different schema, and pasted the data in the new table. When I received the same error, I dropped the table, recreated it, and hand entered all the data, with the same results.
    Table structure:
    id NUMBER(9) PRIMARY KEY
    TABLE_ID NUMBER(9)
    FILTER_ONE VARCHAR2(800)
    FILTER_TWO VARCHAR2(100)
    CLASS_FILTER VARCHAR2(1)
    If I select* FROM test_table WHERE ID = 27, my result set looks like this:
    'blah blah (' ☻ '))' ☺ 'Y'
    The 1st open parenthesis is the end of the filter_one column, the double parenthesis is the entire filter_two, and the Y is the class filter. The control characters come from I know not where, but my app cannot function - this is a dynamically built query and the query of course fails because sqlplus can't interpret the control characters.
    Anyone ever heard of this? I should also mention that this query has worked for the past year, and has not been changed - it just suddenly stopped working.
    Thanks!
    Dave

    Sure -
    CREATE TABLE TEST (
    ID NUMBER(9) PRIMARY KEY,
    TABLE_ID NUMBER(9),
    FILTER_ONE VARCHAR2(800),
    FILTER_TWO VARCHAR2(100),
    CLASS_FILTER VARCHAR2(1) )
    INSERT INTO test VALUES(
    27,38,'where id in (select decode(pci.config_comp_int_id,null,decode(pci.component_id,null,pci.spirit_comp_id, pci.component_id),
    decode(cci.component_id,null,cci.component_id, cci.spirit_comp_id)) from c3net_units u
    join (select uc.*,connect_by_root(unit_id) top_unit_id
    from c3net_unit_config_int uc start with uc.unit_id is not null connect by prior uc.id = uc.parent_id) uci
    on (u.id = uci.top_unit_id)
    left join (c3net_unit_plat_int upi join c3net_plat_comp_int pci on
    ( upi.id = pci.unit_plat_int_id)) on ( uci.id = upi.unit_config_int_id)
    left join (c3net_config_plat_int cpi join c3net_config_comp_int cci on (cpi.id = cci.config_plat_int_id))
    on (uci.config_id = cpi.config_id) where u.version_id in (',
    '))','Y');
    INSERT INTO test VALUES(
    28,39,'where id in (select decode(upi.config_plat_int_id,null,decode(upi.platform_id,null,upi.spirit_plat_id,
    upi.platform_id),
    decode(cpi.platform_id,null,cpi.spirit_plat_id, cpi.platform_id)) from c3net_units u
    join (select uc.*,connect_by_root(unit_id) top_unit_id
    from c3net_unit_config_int uc start with uc.unit_id is not null connect by prior uc.id = uc.parent_id) uci
    on (u.id = uci.top_unit_id)
    left join c3net_unit_plat_int upi on ( uci.id = upi.unit_config_int_id)
    left join c3net_config_plat_int cpi on (uci.config_id = cpi.config_id) where u.version_id in (',
    '))','Y');
    When I then "select * from test where id = 27;" I get strange data - looks like control characters - in the filter_one and filter_two fields
    When I change the id to 28 and re-query, it gives me the core dump and sqlplus error.
    Thanks for your time guys

  • Hidden control characters in file generated by AppleScript?

    Hi all,
    I've come across a strange problem. I have an AppleScript app (kindly produced for me by a member here) that gets called up by cron, which puts up a dialog box at regular intervals asking me to write down what I am doing (to create an activity log). The log is saved to my Documents folder if it doesn't already exist; otherwise my typing will just get time-stamped and added to the file.
    This has been working just fine for several months (years), and now, all of a sudden, AppleScript konks out on me -- it simply crashes. The reason, I discovered, is the log file itself. It gets inflated out of proportions (something like 2.5 Megs where 40K would suffice) because it contains hidden control characters (gremlins) between each letter and zillions of them between words and lines.
    When the script opens this inflated file, TextEdit balks ('Application not responding'), which in turn crashes AppleScript.
    I discovered these gremlins when I opened the document in Classic mode with Word 5, which allows me to remove them and thus make the file smaller and therefore palatable to TextEdit again.
    But that doesn't solve the problem: Every entry continues to be inserted with another load of gremlins, and I can't understand why. I deleted preferences both for TextEdit and AppleScript, and I perform regular disk maintenance.
    TextEdit is set to save plain text files, end-of-line is Macintosh style, character set is Western Mac OS Roman. It's always been like this before when it worked ok.
    Any ideas?
    Thanks in advance.
    G4 MDD 1.25 GHz, 768 MB RAM Mac OS X (10.3.9)

    Hi Camelot,
    The script doesn't specify TextEdit -- it just creates/updates a text file which I then read with TextEdit. Here's the script, and below is the link to the test log:
    --STARTOFSCRIPT------------------------------------------
    -- Find out if the log file is actually there.
    -- We can't get the last entry of a file that doesn't exist.
    set fileExists to false
    tell application "Finder"
    if exists file "MacHD:Users:gisela:Documents:Gisela'sActivityLog.txt" then set fileExists to true
    end tell
    -- Get the last entry in the log file to present to the user.
    -- If the file wasn't there, present a default choice to the user.
    if fileExists then
    set myLogFile to open for access ((path to documents folder as text) & "Gisela'sActivityLog.txt")
    set logFileContents to read myLogFile using delimiter return
    close access myLogFile
    set lastLogEntry to last item of text items of logFileContents
    set oldTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to tab
    set lastEntry to text item 2 of lastLogEntry
    set AppleScript's text item delimiters to oldTIDs
    else
    set lastEntry to "Nothin' much."
    end if
    -- Ask the user what they're doing.
    set myLogEntry to text returned of (display dialog "So... What're you doing?" default answer lastEntry buttons {"OK"} default button "OK" with icon note)
    -- Get the date and time via "Do Shell Script" (for me, easier than mucking with AppleScript's date results).
    -- Modified order to Year Month Day# Weekday hour:min:sec [Gisela]
    set dateUnix to do shell script "date"
    set dateText to word 8 of dateUnix & " " & word 2 of dateUnix & " " & word 3 of dateUnix & " " & word 1 of dateUnix & " " & word 4 of dateUnix & ":" & word 5 of dateUnix & ":" & word 6 of dateUnix & " " & tab
    -- Open a log file on the desktop. The file is created if it doesn't exist.
    set myLogFile to open for access ((path to documents folder as text) & "Gisela'sActivityLog.txt") with write permission
    -- Write a log entry into the file.
    write dateText & myLogEntry & return to myLogFile starting at eof
    -- Close the log file.
    close access myLogFile
    -- Script by Bryan K. Vines, Corpus Christi, TX, via Apple Discussion Forum 22/5/04 and 24/5/04
    --ENDOFSCRIPT------------------------------------------
    Here's the test log => http://www.webalice.it/gisela/TestLog.txt. Had to change the name because my webspace doesn't like apostrophes (').
    This phenomenon only occurs in connection with this Activity log script. My gut tells me it's not AppleScript's fault, but I can't figure out where else to look.
    Kind regards,
    Gisela

  • ASCII control characters in XML

    hi,guys
    I want to export InDesign content to an XML file using javascript.
    The problem is, except for TAB, LF, and CR the control characters (those below ASCII 32) are not allowed in well-formed XML and any parser worth its salt will puke.
    Adobe (mis)uses some ASCII control characters for their own purposes; e.g. "End nested format here" becomes ASCII 3 (ETX - end of text).
    Now how can i export the well-formed XML?
    Although i can replace these characters, but i don't know what should i replace it to correctly, and can be used it correctly in my web page.

    You know there is an Indesign Scripting Forum, too?
    http://forums.adobe.com/community/indesign/indesign_scripting

  • Removing the Control Characters from a text file

    Hi,
    I am using the java.util.regex.* package to removing the control characters from a text file. I got below programming from the java.sun site.
    I am able to successfully compile the file and the when I try to run the file I got the error as
    ------------------------------------------------------------------------D:\Debi\datamigration>java Control
    Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal repet
    ition
    {cntrl}
    at java.util.regex.Pattern.error(Pattern.java:1472)
    at java.util.regex.Pattern.closure(Pattern.java:2473)
    at java.util.regex.Pattern.sequence(Pattern.java:1597)
    at java.util.regex.Pattern.expr(Pattern.java:1489)
    at java.util.regex.Pattern.compile(Pattern.java:1257)
    at java.util.regex.Pattern.<init>(Pattern.java:1013)
    at java.util.regex.Pattern.compile(Pattern.java:760)
    at Control.main(Control.java:24)
    Please help me on this issue.
    Thanks&Regards
    Debi
    import java.util.regex.*;
    import java.io.*;
    public class Control {
    public static void main(String[] args)
    throws Exception {
    //Create a file object with the file name
    //in the argument:
    File fin = new File("fileName1");
    File fout = new File("fileName2");
    //Open and input and output stream
    FileInputStream fis =
    new FileInputStream(fin);
    FileOutputStream fos =
    new FileOutputStream(fout);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(fis));
    BufferedWriter out = new BufferedWriter(
    new OutputStreamWriter(fos));
         // The pattern matches control characters
    Pattern p = Pattern.compile("{cntrl}");
    Matcher m = p.matcher("");
    String aLine = null;
    while((aLine = in.readLine()) != null) {
    m.reset(aLine);
    //Replaces control characters with an empty
    //string.
    String result = m.replaceAll("");
    out.write(result);
    out.newLine();
    in.close();
    out.close();

    Hi,
    I used the code below with the \p, but I didn't able to complie the file. It gave me an
    D:\Debi\datamigration>javac Control.java
    Control.java:24: illegal escape character
    Pattern p = Pattern.compile("\p{cntrl}");
    ^
    1 error
    Please help me on this issue.
    Thanks&Regards
    Debi
    // The pattern matches control characters
    Pattern p = Pattern.compile("\p{cntrl}");
    Matcher m = p.matcher("");
    String aLine = null;

  • Web services and control characters

    Hi,
    We are using JAXWS and JAXB to create web services. We have a problem with our current data because it sometimes contains "bad" characters, such as control characters. Is there a nice way for us to remove these characters when creating the messages or when retrieving the data from the database? We use java persistence / hibernate to retrieve the data from the database.
    I would prefer a method that doesn't include having to "clean" each string manually...
    Thanks!

    hi, i�m doing something like you but in jbuilder that is another IDE, i don�t know if it is useful for you but i entered to the help of jbuilder and i wrote in the index "web services" and then i found a topic called : "export classes as webservices" and in that place i can see some steps to follow, may be in eclipse you can find something like this.

Maybe you are looking for

  • Free of charge items, ie price = u00A30.00 are not transferred to backend.

    Free of charge items, ie price = £0.00 are not transferred to backend. PO created with held status, but the SRM PO item IR flag is selected. If we manually amend the SRM PO item to remove the 'invoice receipt' flag, then save the PO, the PO does get

  • Bad performance when iterating/updating the rows of a tree table

    Hello, we have a tree table based on a VO and EO (with transient attributes). One of the attribute is a flag. The VO is populated with a complex query having many thousands of rows. Now, when the user clicks on a parent node, all the children are upd

  • MS Word 2003 - highlighting problem

    Hi, i have a problem with Word 2003, which i have as part of office 03 pro edition. When i drag select some text in it, typing something in doesn't overwrite it, it just sticks the new text in infront of the selection. Pressing backspace also doesn't

  • Missing Loupe View File Info

    I use the File Info feature a lot in Loupe View. However recently it does not show despite selecting it in the View>Loupe Info Menu. Control+I also fails to work. It happened before recent upgrade so do not link it with that software change. In the p

  • FileVault2 & no supported helper partition to update

    While a workaround for a problem I had fixed the issue, the root cause remains. I am using FileVault2 full disk encryption. It seems on my system the kernelcache never gets updated after the drive has been encrypted with FileVault. To be exact: The k