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 9196759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:55:15+00:00 2026-06-17T21:55:15+00:00

I have an application in Mono that creates a putty window, connects to it’s

  • 0

I have an application in Mono that creates a putty window, connects to it’s PTY and communicates with the world via it.

Thanks to Putty I have a full terminal, I can send special codes (like Ctrl+C, Ctrl+Z) to my app.

I would like to go back to my terminal, in which I start the application. I would like to grab as many key combinations as possible. That way I’d be able to use my app via ssh, with no windows popping up.

My idea is to retrieve my current terminal from /dev/, ignore (or handle) all the possible signals, poll on the pressed keys and forward to my app. This could be done in C with P/Invoke.

This is possible, but painful and time-consuming to code.

I wonder if it’s already done? Do you know about any libraries? The best option would be to register for a callback or two, but any solution making it easier would be great.

TL;DR

I need a library that would give my interface like:

event Action<byte> CharReceived;
void WriteChar(byte val);

and allowed me to receive ANSI terminal codes as sequence of bytes.

The alternative would be a library to translate ConsoleKeyInfo to byte[], according to ANSI terminal rules.

  • 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-06-17T21:55:17+00:00Added an answer on June 17, 2026 at 9:55 pm

    I found the following project link very helpful. You can download the project, then look at the first comment on the codeproject site to see how to extend it to SerialPort support (which is what I needed).

    http://www.codeproject.com/Articles/20781/Terminal-Control-Library-C-VT100-ANSI-XTERM-SSH-Te

    The project is really a thin wrapper around the Poderosa project, but unless you speak Japanese, this thin wrapper is useful. The Poderosa project supports SerialPorts already, but it wasn’t brought to the surface by “Columbus-MCSD”.

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

Sidebar

Related Questions

Our desktop application consists of a Mono/.NET 3.5 back end that communicates via USB
We have a Mono application under Linux that does image processing on a bunch
I have a .NET application that I am porting to Mono so it can
I have MVC3 application that runs under mono on linux. I have this route:
I have a WinForms Application that I want to run at Mono at some
I'm working on an application that's embedding Mono, and I have a simple C#
I have a Mono application with a plain-old Windows Forms form that has a
I have a Mono application that should not show on the dock, but will
I have a simple Application built using Mono on Ubuntu that prints out the
I have a multithreaded application that activate multiple Mono domains from native code. Each

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.