Ich muss ein Windows C++ - Projekt auf Linux übertragen, jedoch verwende ich derzeit MS <conio.h>
, die nicht Linux oder Standards kompatibel ist. Welchen Header empfehlen Sie, ihn für den Einsatz in Linux zu ersetzen? Ich würde bevorzugen, dass die Antwort auch plattformübergreifend ist.Ersatz für <conio.h> in Linux
Antwort
Es gibt eine Ersatzversion conio.h für Linux basiert auf NCurses.
+1 ... Solange er sich auf Borlands Konio bezieht und nicht auf Microsofts !? – Clifford
True, aber die am häufigsten verwendeten Funktionen wie Färbung, Gotoxy, etc. sind sowohl in der Borland als auch in der Microsoft-Implementierung. –
Keine Farbe nicht gooxy in Microsoft-Schnittstelle existieren (http://msdn.microsoft.com/en-us/library/7x2hy4cx%28v=VS.71%29.aspx) es ist minimal im Vergleich zu der Borland-Schnittstelle. Allerdings ist die Borland-Schnittstelle fast eine Obermenge von Microsoft, so dass dies in der Tat passt. – Clifford
Sie werden ncurses wollen.
- 1. Ersatz für MS vsprintf_s unter Linux?
- 2. Guter Ersatz für Qt
- 3. Ersatz für sys/socket.h im Linux-Kernel-Modul?
- 4. Was ist der Unity 2-Ersatz für <typeConfig />?
- 5. Ersatz für das horizontale Lineal <hr> Tag
- 6. FoxyProxy Ersatz für Internet Explorer
- 7. Ersatz für $ .ajax() in Node.js
- 8. Ersatz für in Fenstern Forking
- 9. Ersatz für window.sessionStorage in Javascript?
- 10. Ersatz für __wgetmainargs in VS2015
- 11. Leichter Ersatz für System.Data.DataTable
- 12. SYSGEN_SYSISAPI Ersatz für WinCE6
- 13. Ersatz für binary_function
- 14. Ersatz für JAXMServlet?
- 15. Ersatz für WorkflowUtil.isStale (...)
- 16. UIDatePicker Ersatz für tvOS?
- 17. Ersatz für veraltete eregi
- 18. Ersatz für gefunden = Keine?
- 19. Ersatz für apache.http.client Bibliothek
- 20. Ersatz für Rdoc-Nutzung
- 21. Regex Ersatz für Streifen()
- 22. Ersatz für Neuronale Netze
- 23. CGAL Ersatz für iOS
- 24. Ersatz für document.all.sort.length
- 25. Ersatz für UIViews contentStretch?
- 26. WinRT Ersatz für System.ComponentModel.TypeConverter
- 27. GLUT Ersatz für AUX_RGBImageRec?
- 28. Ersatz für Python statvfs?
- 29. Ersatz für XML-Serialisierung
- 30. PHP Ersatz für safe_mode
@Clifford, Microsoft – Elpezmuerto
http://stackoverflow.com/questions/1541819/how-can-i-write-an-ansi-c-console-screen-buffer/1541924#1541924 –