Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 617503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:26:34+00:00 2026-05-13T18:26:34+00:00

I am getting very strange outputs from my IRB console. Here it is: irb(main):001:0>

  • 0

I am getting very strange outputs from my IRB console. Here it is:

 irb(main):001:0> File.dirname(__FILE__)
 => ←[0;31m"←[0;0m←[0;36m.←[0;0m←[0;31m"←[0;0m

Seems like an encoding issue, right? I am not sure why this is happening. Any ideas how to fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:26:34+00:00Added an answer on May 13, 2026 at 6:26 pm

    Those are escape codes used to set colors in a terminal program; probably most popularly to colour a prompt in an xterm or compatible terminal. My bash prompt environment variable, for example, looks like this:

    PS1="\[\033]2;\w\007\]\[\033[0;31m\]\u@\h \[\033[0;32m\]\!\[\033[0;31m\]> \[\033[0m\]
    

    It looks like some string like that one is getting into your console and confusing it (since it’s not bash and/or in an xterm-friendly terminal emulator, I guess).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting a very strange crash due to iAd. Here's the debugger output: 2010-07-29
I'm facing very strange issue, I'm getting JSON object from django powered site and
I'm occasionally getting a very strange exception: 04-18 18:08:08.121: E/AndroidRuntime(3031): Uncaught handler: thread main
i'm getting a very strange result from my database query, i was hoping someone
I am getting a very strange error in my code. This assignment is for
I have just started getting a very strange error when using jQueryMobile for my
I'm getting so very strange behavior in my Objective C library (for iPhone). What
I'm getting very strange logs tagged 'webcore' when trying to input number in textfield.
I'm getting a very strange behavior in MySQL, which looks like some kind of
I'm getting a very strange behaviour in one of my JSP pages. It looks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.