Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Konsolenfenster mit C schließen

Empfohlene Antworten

Hallo,

habe ein kleines Tool in C geschrieben. Nun würde ich gerne dass ganz am Ende des Programmes das komplette Konsolenfenster geschlossen wird (Linux). Habe das schon mit System("logout"); versucht, dann kommt die Meldung:

sh: line 0: logout: not login shell: use `exit'

Benutze ich dann System("exit"); passiert rein gar nichts. Kennt einer dieses Problem und weiß jemand wie ich es gelöst bekomme? Mit exit(0); wird leider nur das Programm beendet, aber nicht die Konsole geschlossen.

Vielen Dank

Sven

  • 9 Monate später...

wenn du das programm über ein eigenes terminal geöffnet hast, dann schließt sich das, soweit ich weis, automatisch, nachdem du das programm beendet hast. beim xterm war das jedenfalls so.

andernfalls ist es ohnehin unsinn, das terminal schließen zu lassen, wenn es nicht durch das programm selbst geöffnet wurde oder es extra für das programm geöffnet wurde.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.