diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-05-12 19:24:10 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-05-12 19:24:10 +0200 |
commit | 013b6558c97d8ef6732db85525589b5a26280e05 (patch) | |
tree | dd84b3d987f5300a91bed8cfda57351e50ba6a76 | |
parent | cc0ddd7c74c8c0d32b84d9c21661873e8b450f25 (diff) | |
download | ponysay-013b6558c97d8ef6732db85525589b5a26280e05.tar.gz ponysay-013b6558c97d8ef6732db85525589b5a26280e05.tar.bz2 ponysay-013b6558c97d8ef6732db85525589b5a26280e05.zip |
minor documentation fix
-rw-r--r-- | ponysaytruncater.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ponysaytruncater.c b/ponysaytruncater.c index a89b1e0..58f3d91 100644 --- a/ponysaytruncater.c +++ b/ponysaytruncater.c @@ -91,10 +91,8 @@ void write(char b, int width) } else if (esc == 1) { - /* CSI ends with a letter, m is for colour - OSI, OSI P is for palett editing in Linux VT */ - if (b == '[') esc = 2; - else if (b == ']') esc = 3; + if (b == '[') esc = 2; /* CSI: CSI ends with a letter, m is for colour */ + else if (b == ']') esc = 3; /* OSI: OSI P is for palett editing in Linux VT */ else esc = 10; /* Nothing to see here, move along */ } else if (esc == 2) @@ -117,8 +115,8 @@ void write(char b, int width) if ( /* Can be printed: - within bounds ∨ - ∨ escape sequence ∨ + within bounds ∨ + ∨ escape sequence ∨ ∨ last with printed ∧ not first byte in character */ (x < width) || (esc != 0) || @@ -138,6 +136,7 @@ void write(char b, int width) } /* Converts a string to an integer + * * @param string The string to convert * @return The integer represented by the string */ |