Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Terminal Type Window????

Terminal Type Window????

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tryhard
    wrote on last edited by
    #1

    Hi all, I am fairly new to VC++ and am looking for some advice before I start a new program. I want to write a program that looks like a terminal session. i.e. one window - it will present a prompt i.e. # and flashing cursor you then type your command and press enter. The results then appear on the next line followed by a new prompt and flashing cursor on the next line. (I think you get what I am after) I have played with using edit box, rich edit box and list box all seem to be able to acheive this sort of program one way or another, but which one should I really be using?? All advice greatly appreciated, Thanks all, Tryhard :-)

    M F 2 Replies Last reply
    0
    • T Tryhard

      Hi all, I am fairly new to VC++ and am looking for some advice before I start a new program. I want to write a program that looks like a terminal session. i.e. one window - it will present a prompt i.e. # and flashing cursor you then type your command and press enter. The results then appear on the next line followed by a new prompt and flashing cursor on the next line. (I think you get what I am after) I have played with using edit box, rich edit box and list box all seem to be able to acheive this sort of program one way or another, but which one should I really be using?? All advice greatly appreciated, Thanks all, Tryhard :-)

      M Offline
      M Offline
      Mustafa Demirhan
      wrote on last edited by
      #2

      Tryhard wrote: I have played with using edit box, rich edit box and list box all seem to be able to acheive this sort of program one way or another, but which one should I really be using?? Nope! You can not show a flashing cursor on the list box. Using editbox will be simpler than using a richedit. But using rich edit allows you to do more complex operations, such as changing font, color, ...etc. Kind regards Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

      1 Reply Last reply
      0
      • T Tryhard

        Hi all, I am fairly new to VC++ and am looking for some advice before I start a new program. I want to write a program that looks like a terminal session. i.e. one window - it will present a prompt i.e. # and flashing cursor you then type your command and press enter. The results then appear on the next line followed by a new prompt and flashing cursor on the next line. (I think you get what I am after) I have played with using edit box, rich edit box and list box all seem to be able to acheive this sort of program one way or another, but which one should I really be using?? All advice greatly appreciated, Thanks all, Tryhard :-)

        F Offline
        F Offline
        Fredrik Skog
        wrote on last edited by
        #3

        Check out the VCTERM sample in MSDN. I am currently writing a terminal app, and I have chosen the edit box since it seems to be the easiest control to play with. You will need to derive your own edit box class to be able to do what you want, but that is shown in the sample. Cheers,
        /Fredrik

        Sonork ID: 100.11430:PhatBoy

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups