Jump to content

Recommended Posts

I need to make a Text Area behave like a DOS prompt

Basically so it wraps and spaces are placed like they are in a DOS / CMD window...

This might display a little better...

chrome.gif

Can you see how it goes back and forth between "o foo" and just "foo"?  It moves two characters.  What am I doing wrong here?

https://www.webucate.me/textarea.htm

Edited by Heretic86
Link to post
Share on other sites
On 8/20/2021 at 7:16 PM, shezzor said:

Maybe try `word-break: break-all` ?

word-break: break-all;
white-space: break-spaces;

This is as close as I can get.  Works as I want in Firefox, but other people have reported that Firefox is not working like it is supposed to.  So the behavior I want apparently is a "bug" in Firefox?

In chrome, that behavior still remains, it never wraps the space character to the next line which is what I need to make it a "WSYIWYG" editor for my users...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...