curses to draw a box

hi experts,

i am trying to draw a closed thick box. however the use of characters like hypens, pipes, or underscore cannot give me a closed thick box.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


    You mean draw a thick box in a text editor like vi?
How about use "#" instead?

sonic2000Author Commented:
i need a thick closed border box.
anyway what does it got to do with the text editor i am using? anyway i am using vim.
   vim is advanced version of vi.

   However, with text editor, which deals with ASCII code, it's hard to draw a closed box.
However, you can use "+" at each corner of the box.

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

sonic2000Author Commented:
i read about ACS_BLOCK.
How to use all those color constants and drawings?
doesn't seem to work.

   ACS_BLOCK is a parameter for programming fuctions which are defined in ocurses.h.
It's not for plain text file.

Hi sonic2000,
If you have a colour display, you can use VT220 colour codes (or invert mode for monochrome) to exchange foreground and background colours:

Colour swapping:

Inverse: "\x1b[7m"

Reset to normal: "\x1b[0m"

See also



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.