Mercurial > public > ostc4
comparison Discovery/Src/tMenuGas.c @ 1076:c87753e73eb8 Icon_Integration
Dev bugfix 50 pixel spacing:
the control char '\007' was used for the new 50 pixel format style. This character was already in use as '\a' invert (same value different spelling) => The 50 pixel format has been switched to the control char '\033' which is not in use.
| author | Ideenmodellierer |
|---|---|
| date | Sun, 22 Feb 2026 21:23:57 +0100 |
| parents | eceb5cb2a8e3 |
| children |
comparison
equal
deleted
inserted
replaced
| 1075:ef99fff2d2de | 1076:c87753e73eb8 |
|---|---|
| 190 unit_depth_char1(), | 190 unit_depth_char1(), |
| 191 unit_depth_char2()); | 191 unit_depth_char2()); |
| 192 #ifdef ENABLE_ADVANCED_GAS | 192 #ifdef ENABLE_ADVANCED_GAS |
| 193 if( ltr != 0) | 193 if( ltr != 0) |
| 194 { | 194 { |
| 195 textPointer += snprintf(&text[textPointer], 20,"\007 %2u\016\016ltr\017",ltr); | 195 textPointer += snprintf(&text[textPointer], 20,"\033 %2u\016\016ltr\017",ltr); |
| 196 } | 196 } |
| 197 else | 197 else |
| 198 { | 198 { |
| 199 text[textPointer++] = '\007'; | 199 text[textPointer++] = '\033'; |
| 200 text[textPointer++] = '\007'; | 200 text[textPointer++] = '\033'; |
| 201 text[textPointer++] = '\007'; | 201 text[textPointer++] = '\033'; |
| 202 } | 202 } |
| 203 if( bar != 0) | 203 if( bar != 0) |
| 204 { | 204 { |
| 205 textPointer += snprintf(&text[textPointer], 20,"\007 %2u\016\016bar\017",bar); | 205 textPointer += snprintf(&text[textPointer], 20,"\033 %2u\016\016bar\017",bar); |
| 206 } | 206 } |
| 207 | 207 |
| 208 #endif | 208 #endif |
| 209 } | 209 } |
| 210 else | 210 else |
| 281 #ifdef ENABLE_ADVANCED_GAS | 281 #ifdef ENABLE_ADVANCED_GAS |
| 282 if(ltr != 0) | 282 if(ltr != 0) |
| 283 { | 283 { |
| 284 textPointer += snprintf(&text[textPointer], 12,\ | 284 textPointer += snprintf(&text[textPointer], 12,\ |
| 285 "%c" | 285 "%c" |
| 286 "\007\007%2u" | 286 "\033\033%2u" |
| 287 "\016\016" | 287 "\016\016" |
| 288 "ltr" | 288 "ltr" |
| 289 "\017" | 289 "\017" |
| 290 , color[2],ltr | 290 , color[2],ltr |
| 291 ); | 291 ); |
| 292 } | 292 } |
| 293 else | 293 else |
| 294 { | 294 { |
| 295 text[textPointer++] = '\007'; | 295 text[textPointer++] = '\033'; |
| 296 text[textPointer++] = '\007'; | 296 text[textPointer++] = '\033'; |
| 297 text[textPointer++] = '\007'; | 297 text[textPointer++] = '\033'; |
| 298 } | 298 } |
| 299 /* bar */ | 299 /* bar */ |
| 300 if(bar != 0) | 300 if(bar != 0) |
| 301 { | 301 { |
| 302 textPointer += snprintf(&text[textPointer], 12,\ | 302 textPointer += snprintf(&text[textPointer], 12,\ |
| 303 "%c" | 303 "%c" |
| 304 "\007%3u" | 304 "\033%3u" |
| 305 "\016\016" | 305 "\016\016" |
| 306 "bar" | 306 "bar" |
| 307 "\017", | 307 "\017", |
| 308 color[3], bar); | 308 color[3], bar); |
| 309 } | 309 } |
