Re: simple string backspace question



On Jul 31, 8:01 pm, vedrandeko...@xxxxxxxxxxxxxx wrote:
On 31 srp, 11:44, vedrandeko...@xxxxxxxxxxxxxx wrote:

Hello,

I have one simple string, backspace character question.Here is my
example:

text="Hello\bworld"
print text

"HelloBSworld"

Should this character "\b" (backspace) in this text return this:
"Helloworld"?

Regards,
Vedran

Hi,

If you mean on operating system then unfortunately Windows XP.

Point (1) Works on Windows XP for me:

C:\junk>ver

Microsoft Windows XP [Version 5.1.2600]

C:\junk>\python25\python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
text = "Hello\bworld"
print text
Hellworld


or, for mild amusement:

import sys, time
for x in xrange(100):
.... sys.stdout.write("|/-\\"[x & 3] + "\b")
.... time.sleep(0.1)
....


Point (2): Backspace??? YAGNI --- backspace hasn't been much use for
anything (except when typing text) since the days when in order to get
a bold letter (say X) on a character impact printer, one would
transmit X\bX\bX ...


.



Relevant Pages

  • Re: I want to migrate to Linux
    ... Microsoft considers the x86 platform to still be what it was when it was ... Dirty Operating System"; not to be confused with the Q-DOS ... 1.x versions had a GUI called Presentation Manager, from which the Windows ... Thompson has stated that GNU/Linux and cousins are all de facto UNIX ...
    (comp.os.linux.hardware)
  • Re: Newbie to WCE!
    ... Windows CE, which is a full-blown operating system, just like Windows XP, ... the chip maker for the BSP if they have one (there ... All I want to know is can I buy a microcontroller chip (One of the chips ...
    (microsoft.public.windowsce.embedded)
  • [Full-disclosure] - IRISH VIRUS - DoS Security Bypass and System access
    ... THE operating system ... Apple Computer Apple DOS ... Windows CE ... LOLDONGS Research, a Wholly Owned Subsidiary of Banned Town Security ...
    (Full-Disclosure)
  • Re: Why most run Microsoft, not RedHat
    ... re-install has happened more than that. ... Heck, even Steve Ballmer, CEO for Microsoft needs to re-install Windows ... We have an enterprise grade firewall behind the router. ... The main problems I encounter again and again are with clueless operators who've ignored repeated instructions about dangerous surfing practices and clicking on attachments - those are the two most common causes of problems - are they caused by the operating system? ...
    (Fedora)
  • Novell Client login form enables reading and writing from and to the clipboard of the logged-in
    ... Novell Client for Windows, ... Anyone with access to the computer's local operating system console, ... inject its own textual content into the clipboard of the currently logged-in ...
    (Bugtraq)